summaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
Diffstat (limited to 'depends')
-rw-r--r--depends/md5/CMakeLists.txt3
-rw-r--r--depends/tinyxml/CMakeLists.txt3
-rw-r--r--depends/tthread/CMakeLists.txt3
3 files changed, 6 insertions, 3 deletions
diff --git a/depends/md5/CMakeLists.txt b/depends/md5/CMakeLists.txt
index 69e0cf0b..df14e3c5 100644
--- a/depends/md5/CMakeLists.txt
+++ b/depends/md5/CMakeLists.txt
@@ -1,3 +1,4 @@
project(dfhack-md5)
ADD_LIBRARY(dfhack-md5 STATIC EXCLUDE_FROM_ALL md5.cpp md5wrapper.cpp)
-IDE_FOLDER(dfhack-md5 "Depends") \ No newline at end of file
+set_target_properties(dfhack-md5 PROPERTIES POSITION_INDEPENDENT_CODE True)
+IDE_FOLDER(dfhack-md5 "Depends")
diff --git a/depends/tinyxml/CMakeLists.txt b/depends/tinyxml/CMakeLists.txt
index 7d924924..f97f4bc0 100644
--- a/depends/tinyxml/CMakeLists.txt
+++ b/depends/tinyxml/CMakeLists.txt
@@ -1,3 +1,4 @@
project(dfhack-tinyxml)
ADD_LIBRARY(dfhack-tinyxml STATIC EXCLUDE_FROM_ALL tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp)
-IDE_FOLDER(dfhack-tinyxml "Depends") \ No newline at end of file
+set_target_properties(dfhack-tinyxml PROPERTIES POSITION_INDEPENDENT_CODE True)
+IDE_FOLDER(dfhack-tinyxml "Depends")
diff --git a/depends/tthread/CMakeLists.txt b/depends/tthread/CMakeLists.txt
index d34c19c8..2757a6ed 100644
--- a/depends/tthread/CMakeLists.txt
+++ b/depends/tthread/CMakeLists.txt
@@ -1,6 +1,7 @@
PROJECT(dfhack-tinythread)
ADD_LIBRARY(dfhack-tinythread STATIC EXCLUDE_FROM_ALL tinythread.cpp)
+set_target_properties(dfhack-tinythread PROPERTIES POSITION_INDEPENDENT_CODE True)
if(UNIX)
target_link_libraries(dfhack-tinythread pthread)
endif()
-IDE_FOLDER(dfhack-tinythread "Depends") \ No newline at end of file
+IDE_FOLDER(dfhack-tinythread "Depends")