Skip to content

Commit

Permalink
Fix linking on OS X, which does not have librt.
Browse files Browse the repository at this point in the history
  • Loading branch information
archshift committed Oct 23, 2014
1 parent f6ddafa commit 6bcc2c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/OSSupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ SET (HDRS
if(NOT MSVC)
add_library(OSSupport ${SRCS} ${HDRS})

if(UNIX)
target_link_libraries(OSSupport pthread rt)
if(NOT APPLE)
target_link_libraries(OSSupport rt)
endif()

if(UNIX)
target_link_libraries(OSSupport pthread)
endif()

This comment has been minimized.

Copy link
@madmaxoft

madmaxoft Oct 24, 2014

Member

You're mixing spaces and tabs again.

This comment has been minimized.

Copy link
@archshift

archshift Oct 24, 2014

Author Contributor

Argh, that's right! I find myself having to switch back and forth frequently, for different projects, so forgive me when this happens :P

endif()

0 comments on commit 6bcc2c1

Please sign in to comment.