diff options
Diffstat (limited to 'depends/pack200/CMakeLists.txt')
-rw-r--r-- | depends/pack200/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/depends/pack200/CMakeLists.txt b/depends/pack200/CMakeLists.txt index 3e41d378..d71f6535 100644 --- a/depends/pack200/CMakeLists.txt +++ b/depends/pack200/CMakeLists.txt @@ -37,9 +37,13 @@ src/zip.cpp src/zip.h ) -SET(PACK200_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE) -include_directories(include) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) +SET(PACK200_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE) +include_directories( + include + ${ZLIB_INCLUDE_DIRS} +) add_library(unpack200 STATIC ${PACK200_SRC}) IF(UNIX) |