diff options
| -rw-r--r-- | common/c_cpp/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/c_cpp/CMakeLists.txt b/common/c_cpp/CMakeLists.txt index 5ab146e..1e2cf1f 100644 --- a/common/c_cpp/CMakeLists.txt +++ b/common/c_cpp/CMakeLists.txt @@ -23,6 +23,13 @@ else() target_compile_options(common INTERFACE -Wall -Wextra -Wpedantic) endif() +# ----------------------------------------------------------------------------- +# Disable stupid warnings on Windows +# ----------------------------------------------------------------------------- +if(WIN32) + target_compile_definitions(common INTERFACE _CRT_SECURE_NO_WARNINGS) +endif() + # @@ should do a test compile to see if asan is actually available if(NOT MINGW) target_compile_options(common INTERFACE -fsanitize=address) |