Unverified Commit 4d658bd5 by Greg Fischer Committed by GitHub

Merge pull request #2623 from greg-lunarg/except

Fix CMakeLists.txt to keep compatibility with CMake 3.10.2
parents 25dd807c 7b51e234
...@@ -195,7 +195,7 @@ elseif(MSVC) ...@@ -195,7 +195,7 @@ elseif(MSVC)
add_compile_options(/EHsc) # Enable Exceptions add_compile_options(/EHsc) # Enable Exceptions
else() else()
string(REGEX REPLACE /EHsc "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Try to remove default /EHsc cxx_flag 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()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment