summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-02 14:29:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-02 14:29:19 +0100
commit9c4234b8c977f285978c5595a812fee3e282590a (patch)
tree8afa34523a04329a6afc8f985b6b827425939b87
parent4e1823a8690992e6e0d9c54e41b333ea0dbc2be7 (diff)
cmake: disable -fuse-cxa-atexit on Windows
Otherwise it fails in CLion EAP.
-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)