summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-10-24 00:03:54 +0200
committerarchshift <admin@archshift.com>2014-10-24 00:03:54 +0200
commit8ccb729504a866b50907993a71d3e35ad19e96a4 (patch)
tree88e6fd307b5d8d2a71b98c2e4eb1feb3d48005f8 /src
parentFix linking on OS X, which does not have librt. (diff)
downloadcuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.tar
cuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.tar.gz
cuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.tar.bz2
cuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.tar.lz
cuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.tar.xz
cuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.tar.zst
cuberite-8ccb729504a866b50907993a71d3e35ad19e96a4.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/OSSupport/CMakeLists.txt b/src/OSSupport/CMakeLists.txt
index a2f46d656..3c0a3f1a0 100644
--- a/src/OSSupport/CMakeLists.txt
+++ b/src/OSSupport/CMakeLists.txt
@@ -38,11 +38,11 @@ SET (HDRS
if(NOT MSVC)
add_library(OSSupport ${SRCS} ${HDRS})
- if(NOT APPLE)
- target_link_libraries(OSSupport rt)
- endif()
-
if(UNIX)
+ if(NOT APPLE)
+ target_link_libraries(OSSupport rt)
+ endif()
+
target_link_libraries(OSSupport pthread)
endif()
endif()