From 5f9ee6619772a9360672edea0e54b0690b6a5b69 Mon Sep 17 00:00:00 2001 From: erysdren Date: Wed, 10 Jul 2024 01:24:44 -0500 Subject: [PATCH] CMakeLists: add some comments explaining MSVC stuff --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e9a97fb..f047dc9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,9 @@ target_compile_definitions(${TARADINO_EXEC} PRIVATE PACKAGE_TARNAME="${TARADINO_ if(MSVC) set_property(TARGET ${TARADINO_EXEC} PROPERTY C_STANDARD 17) + # silence warnings about POSIX functions target_compile_options(${TARADINO_EXEC} PUBLIC -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -Dstrcasecmp=_stricmp -Dalloca=_alloca) + # silence unsigned/signed and integer truncation warnings target_compile_options(${TARADINO_EXEC} PRIVATE /wd4267 /wd4244) endif()