From 718346dbb91afab2d71f71683400d71bcaf6ee7c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 21 Oct 2022 01:00:54 +0200 Subject: fix corrade resource dtor not running --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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$") -- cgit v1.2.3