summaryrefslogtreecommitdiff
path: root/tools/cmake/DawAddState.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cmake/DawAddState.cmake')
-rw-r--r--tools/cmake/DawAddState.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cmake/DawAddState.cmake b/tools/cmake/DawAddState.cmake
index 92c2112..e0664e0 100644
--- a/tools/cmake/DawAddState.cmake
+++ b/tools/cmake/DawAddState.cmake
@@ -41,6 +41,9 @@ macro(daw_add_state STATENAME)
else()
add_library(${STATENAME} SHARED ${STATE_SOURCES})
endif()
+
+ set_property(TARGET ${STATENAME} PROPERTY POSITION_INDEPENDENT_CODE ON)
+
else()
add_library(${STATENAME} OBJECT ${STATE_SOURCES})
endif()