Ignore warnings for use of legacy CRT functions when compiling with MSVC for now

There's no warning about these when compiling for other targets so let's
ignore them for now.
This commit is contained in:
Martchus 2023-05-07 21:52:06 +02:00
parent c60584e122
commit c6396f92fc
1 changed files with 4 additions and 0 deletions

View File

@ -690,6 +690,10 @@ else ()
endforeach ()
endif ()
# configure warnings
configure_development_warnings(APPEND_OUTPUT_VAR META_PRIVATE_COMPILE_OPTIONS)
if (MSVC)
list(APPEND META_PRIVATE_COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS=1)
endif ()
set(BASIC_PROJECT_CONFIG_DONE YES)