Skip to content

Commit

Permalink
Define windows specific macro only for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacquwes committed Sep 27, 2023
1 parent 25d8529 commit f45658e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ enable_testing()
find_package(asio CONFIG REQUIRED)
find_package(GTest CONFIG REQUIRED)

add_definitions(-D_WIN32_WINNT=0x0A00)
if (WIN32)
add_definitions(-D_WIN32_WINNT=0x0A00)
endif()

add_subdirectory(shared)
add_subdirectory(server)
Expand Down

0 comments on commit f45658e

Please sign in to comment.