File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL Windows)
328
328
dispatch_windows_arch_spelling (${CMAKE_SYSTEM_PROCESSOR} DISPATCH_MSVC_ARCH )
329
329
dispatch_windows_include_for_arch (${DISPATCH_MSVC_ARCH} DISPATCH_INCLUDES )
330
330
include_directories (BEFORE SYSTEM ${DISPATCH_INCLUDES} )
331
+ dispatch_windows_lib_for_arch (${CMAKE_SYSTEM_PROCESSOR} DISPATCH_LIBDIR )
332
+ link_directories (${DISPATCH_LIBDIR} )
331
333
endif ()
332
334
333
335
add_subdirectory (dispatch )
Original file line number Diff line number Diff line change @@ -196,6 +196,13 @@ target_link_libraries(dispatch PRIVATE Threads::Threads)
196
196
if (WITH_BLOCKS_RUNTIME )
197
197
target_link_libraries (dispatch PRIVATE BlocksRuntime )
198
198
endif ()
199
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows )
200
+ target_link_libraries (dispatch
201
+ PRIVATE
202
+ WS2_32
203
+ WinMM
204
+ synchronization )
205
+ endif ()
199
206
if (CMAKE_SYSTEM_NAME STREQUAL Darwin )
200
207
set_property (TARGET dispatch
201
208
APPEND_STRING
You can’t perform that action at this time.
0 commit comments