From 7b51e234fe0aa47c56314c0c8e95916597303f1d Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Thu, 22 Apr 2021 16:30:17 -0600 Subject: [PATCH] Fix CMakeLists.txt to keep compatibility with CMake 3.10.2 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ed5265..70fe3fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- 2.7.4