Commit 384c8a39 authored by deuce's avatar deuce
Browse files

Properly handle the thread library.

parent 530bf4fc
......@@ -91,20 +91,21 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
target_link_libraries(xpdev m)
target_link_libraries(xpdev network)
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
target_link_libraries(xpdev ossaudio pthread)
target_link_libraries(xpdev ossaudio)
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
target_link_libraries(xpdev ossaudio pthread)
target_link_libraries(xpdev ossaudio)
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
target_link_libraries(xpdev socket pthread)
target_link_libraries(xpdev socket)
elseif(CMAKE_SYSTEM_NAME STREQUAL "OS X")
target_link_libraries(xpdev pthread)
target_link_libraries(xpdev)
elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
target_link_libraries(xpdev pthread)
target_link_libraries(xpdev)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(xpdev pthread)
target_link_libraries(xpdev)
elseif(WIN32)
target_link_libraries(xpdev ws2_32 winmm)
endif()
target_link_libraries(xpdev ${CMAKE_THREAD_LIBS_INIT})
if(EXISTS /dev/urandom)
target_compile_definitions(xpdev PRIVATE HAS_DEV_URANDOM URANDOM_DEV="/dev/urandom")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment