From f70a93cd82e213ff3faab79780c5988d4cbcd4a9 Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Mon, 6 Apr 2015 19:25:53 +0200 Subject: [PATCH] Apple support for build system --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e46c222..ec63094d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,9 +161,12 @@ add_library (mist ${libHeaders} ${libSources} ) +if (NOT APPLE) + set (LIBRT -lrt) +endif() target_link_libraries(mist -lpthread - -lrt + ${LIBRT} ) install( FILES ${libHeaders}