Skip to content

Commit

Permalink
BUILD: Silence Windows CRT security warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Jan 4, 2024
1 parent 59f43f5 commit 792558a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/os.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if(WIN32)
"-DWIN32_LEAN_AND_MEAN"
# Prevent Windows headers from defining the macros "min" and "max" that mess up e.g. std::min usage
"-DNOMINMAX"
# Prevent warnings such as "use strcpy_s instead of strcpy"
"-D_CRT_SECURE_NO_WARNINGS"
)
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
Expand Down

0 comments on commit 792558a

Please sign in to comment.