Skip to content

Commit

Permalink
Set WIN32_LEAN_AND_MEAN, gets rid of the winsock2 warnings and probably
Browse files Browse the repository at this point in the history
speeds up compilation a tiny bit

oh and NOMINMAX too for good measure while we're at it
  • Loading branch information
nadiaholmquist committed Nov 11, 2024
1 parent b2f6fab commit 7c1d2a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ endif()

if (WIN32)
target_link_libraries(core PRIVATE ole32 comctl32 wsock32 ws2_32)
target_compile_definitions(core PUBLIC WIN32_LEAN_AND_MEAN NOMINMAX)
elseif(NOT APPLE AND NOT HAIKU)
check_library_exists(rt shm_open "" NEED_LIBRT)
if (NEED_LIBRT)
Expand Down

0 comments on commit 7c1d2a6

Please sign in to comment.