Skip to content

Commit

Permalink
Suppress MSVC warning about use of sprintf (and other 'non-secure' C …
Browse files Browse the repository at this point in the history
…APIs)
  • Loading branch information
shartte committed Aug 13, 2021
1 parent b93e0b9 commit 97d6cb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ if (UNIX AND NOT WIN32 AND NOT APPLE)
mark_as_advanced (LIB_POSTFIX)
endif ()
endif ()
if (MSVC)
add_definitions (-D_CRT_SECURE_NO_WARNINGS)
endif()
if (NOT DEFINED LIB_POSTFIX)
set (LIB_POSTFIX "")
endif ()
Expand Down

0 comments on commit 97d6cb3

Please sign in to comment.