summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ecf2291..40df9b3a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,9 +109,12 @@ endif()
if(WIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0)
endif()
+
if(NOT APPLE AND NOT WIN32)
add_compile_options(-fno-plt)
+ add_link_options(-Wl,-z,relro,-z,now)
endif()
+
add_definitions(
-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
-DIMGUI_DISABLE_OBSOLETE_KEYIO