Merge pull request #2623 from greg-lunarg/except

Fix CMakeLists.txt to keep compatibility with CMake 3.10.2
This commit is contained in:
Greg Fischer 2021-04-22 18:03:36 -06:00 committed by GitHub
commit 4d658bd5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ elseif(MSVC)
add_compile_options(/EHsc) # Enable Exceptions
else()
string(REGEX REPLACE /EHsc "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Try to remove default /EHsc cxx_flag
add_compile_definitions(_HAS_EXCEPTIONS=0)
add_compile_options(/D_HAS_EXCEPTIONS=0)
endif()
endif()