Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoelf-Jilling <r-j.wolthuis@live.com>2020-01-16 21:10:02 +0300
committerRoelf-Jilling <r-j.wolthuis@live.com>2020-01-16 21:31:31 +0300
commit95730a80c4ddb0c565f5bb2e44fe1bf1d4acc971 (patch)
tree1b640524a73ebfbddaf2f7acd2689d8cf47728c8 /tests
parent72312b64749b4f087fc30d513eb4a2f99ed1aaf5 (diff)
Restore disabling of exceptions for Microsoft STL in "no exception tests"
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index ef70547..1304688 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -133,6 +133,9 @@ endforeach(flag_var)
# please try to keep entries ordered =)
add_library(gsl_tests_config_noexcept INTERFACE)
if(MSVC) # MSVC or simulating MSVC
+ target_compile_definitions(gsl_tests_config_noexcept INTERFACE
+ _HAS_EXCEPTIONS=0 # disable exceptions in the Microsoft STL
+ )
target_compile_options(gsl_tests_config_noexcept INTERFACE
${GSL_CPLUSPLUS_OPT}
/W4