From ba57aa0144522959166bb3bf92a47162d575b88e Mon Sep 17 00:00:00 2001 From: "andrey.bychkov" Date: Wed, 18 Mar 2026 09:40:32 +0300 Subject: [PATCH] disable exceptions on win --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8478147f..19d29932 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -360,7 +360,7 @@ endif() if(WIN32) add_definitions(-DPSAPI_VERSION=1) if(${C_COMPILER} STREQUAL "cl.exe") - set(CMAKE_CXX_FLAGS "/O2 /Ob2 /Ot /W0") + set(CMAKE_CXX_FLAGS "/O2 /Ob2 /Ot /W0 /EH-") endif() else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fno-exceptions")