diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2025-11-26 17:02:36 -0600 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2025-11-26 17:02:36 -0600 |
| commit | ab0f6187ebd07cc9cc6dc9bc24a38a907b5b64a6 (patch) | |
| tree | a21741d6c7eb99fdc08649f98d50ae4881b86df6 /common/c_cpp | |
| parent | 69151820e0ef4096c6dc5e5c35470fcd91d86a84 (diff) | |
_CRT_SECURE_NO_WARNINGS
Diffstat (limited to 'common/c_cpp')
| -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) |