We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3dc63 commit 11ed2acCopy full SHA for 11ed2ac
CMakeLists.txt
@@ -92,6 +92,9 @@ if(MSVC)
92
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /d2FH4-")
93
else()
94
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
95
+ if(NOT APPLE)
96
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack")
97
+ endif()
98
endif()
99
100
find_package(Threads)
0 commit comments