Commit 3b831954 authored by deuce's avatar deuce
Browse files

libm for everyone! (Except Win32, they don't deserve it).

parent feb9360d
...@@ -88,19 +88,14 @@ target_compile_definitions(xpdev INTERFACE WRAPPER_IMPORTS) ...@@ -88,19 +88,14 @@ target_compile_definitions(xpdev INTERFACE WRAPPER_IMPORTS)
if(WIN32) if(WIN32)
target_link_libraries(xpdev Iphlpapi Ws2_32 Winmm) target_link_libraries(xpdev Iphlpapi Ws2_32 Winmm)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Haiku") elseif(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
target_link_libraries(xpdev m) target_link_libraries(xpdev network m)
target_link_libraries(xpdev network)
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
target_link_libraries(xpdev ossaudio m) target_link_libraries(xpdev ossaudio m)
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
target_link_libraries(xpdev ossaudio m) target_link_libraries(xpdev ossaudio m)
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS") elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
target_link_libraries(xpdev socket m) target_link_libraries(xpdev socket m)
elseif(CMAKE_SYSTEM_NAME STREQUAL "OS X") else()
target_link_libraries(xpdev m)
elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
target_link_libraries(xpdev m)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(xpdev m) target_link_libraries(xpdev m)
endif() endif()
target_link_libraries(xpdev ${CMAKE_THREAD_LIBS_INIT}) target_link_libraries(xpdev ${CMAKE_THREAD_LIBS_INIT})
......
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