Fix Windows CMake warnings.

This commit is contained in:
2026-03-15 21:58:22 -07:00
parent 5293c769a3
commit c649854ac5

View File

@@ -6,6 +6,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
if (WIN32) if (WIN32)
add_definitions(-D_HAS_EXCEPTIONS=0) add_definitions(-D_HAS_EXCEPTIONS=0)
string(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
endif() endif()
if (NOT WIN32 AND NOT ANDROID) if (NOT WIN32 AND NOT ANDROID)