Link libdispatch if it is available, since the toydispatch stuff will pull it in.

main
thebeing 13 years ago
parent 608b330bae
commit 26b04515a9

@ -203,6 +203,8 @@ else (CXX_RUNTIME)
list(APPEND INSTALL_TARGETS objcxx)
endif (CXX_RUNTIME)
# Currently, we actually need pthreads, but we should use the platform's native
# threading implementation (we do for everything except thread-local storage)
set(CMAKE_THREAD_PREFER_PTHREAD)
@ -239,6 +241,12 @@ if (LIBGC)
target_link_libraries(objc ${LIBGC})
endif ()
# Link libdispatch if available (we'll miss symbols for toydispatch otherwise)
find_library(LIBDISPATCH dispatch)
if (LIBDISPATCH)
target_link_libraries(objc ${LIBDISPATCH})
endif ()
#
# Installation
#

Loading…
Cancel
Save