summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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()