From: Guido Draheim Date: Sun, 26 May 2019 09:43:41 +0000 (+0200) Subject: correcting cmake zzipwrap includes X-Git-Tag: v0.13.72~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf6f9574ce2347e3379c1e6a93ed7593703d06d6;p=zziplib correcting cmake zzipwrap includes --- diff --git a/zzipwrap/CMakeLists.txt b/zzipwrap/CMakeLists.txt index dc69667..32b569e 100644 --- a/zzipwrap/CMakeLists.txt +++ b/zzipwrap/CMakeLists.txt @@ -36,14 +36,14 @@ set(libzzipwrap_HDRS add_library(libzzipwrap ${libzzipwrap_SRCS} ) target_link_libraries(libzzipwrap libzzip ZLIB::ZLIB ) -target_include_directories(libzzipwrap PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") +target_include_directories(libzzipwrap PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_BUILD_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") set_target_properties(libzzipwrap PROPERTIES OUTPUT_NAME "zzipwrap" RELEASE_POSTFIX "-${RELNUM}") SET_TARGET_PROPERTIES(libzzipwrap PROPERTIES VERSION ${VERNUM}.${FIXNUM} SOVERSION ${VERNUM}) add_executable(zzipwrap ${zzipwrap_SRCS} ) target_link_libraries(zzipwrap libzzipwrap ) -target_include_directories(zzipwrap PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") +target_include_directories(zzipwrap PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_BUILD_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") if(UNIX) add_custom_command(OUTPUT zzipwrap.pc