summaryrefslogtreecommitdiffstats
path: root/libraries/pack200
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/pack200')
-rw-r--r--libraries/pack200/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/pack200/CMakeLists.txt b/libraries/pack200/CMakeLists.txt
index 85f32408..359445d2 100644
--- a/libraries/pack200/CMakeLists.txt
+++ b/libraries/pack200/CMakeLists.txt
@@ -26,7 +26,9 @@ set(PACK200_SRC
src/zip.h
)
-set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+if (Qt5_POSITION_INDEPENDENT_CODE)
+ SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
+endif()
add_library(MultiMC_unpack200 SHARED ${PACK200_SRC})
target_include_directories(MultiMC_unpack200 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}" PRIVATE ${ZLIB_INCLUDE_DIRS} "${CMAKE_CURRENT_SOURCE_DIR}/src")