Disabled exceptions for stl on WIN32. Fixed warnings

This commit is contained in:
2020-07-22 17:37:22 -07:00
parent 46c356ebc5
commit f1d25b4cdf
5 changed files with 8 additions and 4 deletions

View File

@@ -11,6 +11,10 @@ else(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
if (WIN32)
add_definitions(-D_HAS_EXCEPTIONS=0)
endif()
if (NOT WIN32 AND NOT ANDROID)
set(CMAKE_CXX_COMPILER "clang++")
endif()