Skip to content

Commit

Permalink
[cmake] Suppress useless Visual C security warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gruenich committed Feb 18, 2024
1 parent c7a5fca commit 5440009
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 @@ -120,6 +120,8 @@ endif()

if(MSVC)
add_compile_definitions(NOMINMAX _COMPLEX_DEFINED)
# suppress compiler warnings that sprintf and similar functions are unsafe (e.g. C4996)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()

######################################################################
Expand Down

0 comments on commit 5440009

Please sign in to comment.