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") ...@@ -91,20 +91,21 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
target_link_libraries(xpdev m) target_link_libraries(xpdev m)
target_link_libraries(xpdev network) target_link_libraries(xpdev network)
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
target_link_libraries(xpdev ossaudio pthread) target_link_libraries(xpdev ossaudio)
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
target_link_libraries(xpdev ossaudio pthread) target_link_libraries(xpdev ossaudio)
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS") elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
target_link_libraries(xpdev socket pthread) target_link_libraries(xpdev socket)
elseif(CMAKE_SYSTEM_NAME STREQUAL "OS X") elseif(CMAKE_SYSTEM_NAME STREQUAL "OS X")
target_link_libraries(xpdev pthread) target_link_libraries(xpdev)
elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX") elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
target_link_libraries(xpdev pthread) target_link_libraries(xpdev)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(xpdev pthread) target_link_libraries(xpdev)
elseif(WIN32) elseif(WIN32)
target_link_libraries(xpdev ws2_32 winmm) target_link_libraries(xpdev ws2_32 winmm)
endif() endif()
target_link_libraries(xpdev ${CMAKE_THREAD_LIBS_INIT})
if(EXISTS /dev/urandom) if(EXISTS /dev/urandom)
target_compile_definitions(xpdev PRIVATE HAS_DEV_URANDOM URANDOM_DEV="/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