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)
328328 dispatch_windows_arch_spelling(${CMAKE_SYSTEM_PROCESSOR} DISPATCH_MSVC_ARCH)
329329 dispatch_windows_include_for_arch(${DISPATCH_MSVC_ARCH} DISPATCH_INCLUDES)
330330 include_directories (BEFORE SYSTEM ${DISPATCH_INCLUDES} )
331+ dispatch_windows_lib_for_arch(${CMAKE_SYSTEM_PROCESSOR} DISPATCH_LIBDIR)
332+ link_directories (${DISPATCH_LIBDIR} )
331333endif ()
332334
333335add_subdirectory (dispatch)
Original file line number Diff line number Diff line change @@ -196,6 +196,13 @@ target_link_libraries(dispatch PRIVATE Threads::Threads)
196196if (WITH_BLOCKS_RUNTIME)
197197 target_link_libraries (dispatch PRIVATE BlocksRuntime)
198198endif ()
199+ if (CMAKE_SYSTEM_NAME STREQUAL Windows)
200+ target_link_libraries (dispatch
201+ PRIVATE
202+ WS2_32
203+ WinMM
204+ synchronization)
205+ endif ()
199206if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
200207 set_property (TARGET dispatch
201208 APPEND_STRING
You can’t perform that action at this time.
0 commit comments