Skip to content

Commit

Permalink
CMakeLists: add some comments explaining MSVC stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Jul 10, 2024
1 parent 6ce6dd4 commit 5f9ee66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5f9ee66

Please sign in to comment.