disable exeptions in cmake #199

Merged
peri4 merged 2 commits from disable_exeptions into master 2026-03-18 11:48:54 +03:00
Showing only changes of commit ba57aa0144 - Show all commits

View File

@@ -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")