Unverified Commit 9801a9e4 by greg-lunarg Committed by GitHub

Merge pull request #2546 from proydakov/msvc-noexcept-fix

Fixed msvc 2019 nmake noexcept build.
parents 2e99822c 5f7228e7
...@@ -193,6 +193,9 @@ elseif(MSVC) ...@@ -193,6 +193,9 @@ elseif(MSVC)
endif() endif()
if(ENABLE_EXCEPTIONS) if(ENABLE_EXCEPTIONS)
add_compile_options(/EHsc) # Enable Exceptions 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)
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