summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5d40cd7d..359fc19a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,7 +137,9 @@ if(MSVC)
add_link_options(-HIGHENTROPYVA)
endif()
else()
- add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fuse-cxa-atexit>)
+ if(NOT WIN32)
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fuse-cxa-atexit>)
+ endif()
if(WIN32)
add_link_options(-Wl,--nxcompat -Wl,--dynamicbase)
if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)