summaryrefslogtreecommitdiff
path: root/src/debug/createdump/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/createdump/CMakeLists.txt')
-rw-r--r--src/debug/createdump/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/debug/createdump/CMakeLists.txt b/src/debug/createdump/CMakeLists.txt
index 8c0a044..edad62e 100644
--- a/src/debug/createdump/CMakeLists.txt
+++ b/src/debug/createdump/CMakeLists.txt
@@ -20,8 +20,6 @@ include_directories(BEFORE ${VM_DIR})
add_definitions(-DPAL_STDCPP_COMPAT=1)
-add_compile_options(-fPIE)
-
set(CREATEDUMP_SOURCES
createdump.cpp
crashinfo.cpp
@@ -41,18 +39,22 @@ _add_library(createdump_lib
${CREATEDUMP_SOURCES}
)
+set_property(TARGET createdump_lib PROPERTY COMPILE_FLAGS "-fPIC")
+
_add_library(dnetmemoryenum SHARED
${DNETMEMORYENUM_SOURCES}
${PAL_REDEFINES_FILE}
)
-set_property(TARGET dnetmemoryenum PROPERTY POSITION_INDEPENDENT_CODE ON)
+set_property(TARGET dnetmemoryenum PROPERTY COMPILE_FLAGS "-fPIC")
_add_executable(createdump
main.cpp
${PAL_REDEFINES_FILE}
)
+set_property(TARGET createdump PROPERTY COMPILE_FLAGS "-fPIE")
+
add_dependencies(createdump pal_redefines_file)
add_dependencies(dnetmemoryenum pal_redefines_file)