From 9c4234b8c977f285978c5595a812fee3e282590a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 Mar 2023 14:29:19 +0100 Subject: cmake: disable -fuse-cxa-atexit on Windows Otherwise it fails in CLion EAP. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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($<$:-fuse-cxa-atexit>) + if(NOT WIN32) + add_compile_options($<$:-fuse-cxa-atexit>) + endif() if(WIN32) add_link_options(-Wl,--nxcompat -Wl,--dynamicbase) if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8) -- cgit v1.2.3