Skip to content

Commit

Permalink
compile with WIN32_LEAN_AND_MEAN on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Feb 16, 2025
1 parent f765119 commit 465d322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_SIMULATE_ID MATCHES "MSVC")
add_definitions(-D _CRT_NONSTDC_NO_DEPRECATE)
# ignore "'fopen' is deprecated" and "'strncpy' is deprecated" warnings
add_definitions(-D _CRT_SECURE_NO_WARNINGS)
add_compile_definitions(WIN32_LEAN_AND_MEAN)
endif()

aux_source_directory(common COMMON_SRC)
Expand Down

0 comments on commit 465d322

Please sign in to comment.