summaryrefslogtreecommitdiff
path: root/depends/tthread
diff options
context:
space:
mode:
Diffstat (limited to 'depends/tthread')
-rw-r--r--depends/tthread/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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")