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()