From 8f66862726b4aaf3f0356737b6742619d1231733 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 17 Feb 2013 10:04:40 -0800 Subject: [PATCH] Linking with librt only on Linux --- cpp/ycm/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 8be08c76..50a9e8c1 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -207,7 +207,8 @@ if ( EXTRA_RPATH ) set( CMAKE_INSTALL_RPATH "${EXTRA_RPATH}:${CMAKE_INSTALL_RPATH}" ) endif() -if ( UNIX ) +# Needed on Linux machines, but not on Macs +if ( UNIX AND NOT APPLE ) set( EXTRA_LIBS rt ) endif()