From 52378b59d57897a9c874a5c3af422e64d6a85403 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 26 Apr 2024 14:27:23 -0400 Subject: [PATCH] Don't set -fexceptions on MSVC --- launcher/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index d4afc8a..d7017f8 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -149,7 +149,9 @@ target_link_libraries(astra PRIVATE QCoro::Core QCoro::Network QCoro::Qml) -target_compile_options(astra PRIVATE -fexceptions) +if (NOT MSVC) + target_compile_options(astra PRIVATE -fexceptions) +endif () if (BUILD_FLATPAK) target_compile_definitions(astra PRIVATE FLATPAK)