summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 842808d1..924170f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,6 +84,8 @@ if(MSVC)
if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)
add_link_options(-HIGHENTROPYVA)
endif()
+else()
+ add_compile_options(-fuse-cxa-atexit)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang$")