diff options
author | dimitri staessens <[email protected]> | 2016-08-30 14:29:08 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-08-30 21:44:34 +0200 |
commit | 04eb03136466a18d81511e7ccadf51c08faa8edb (patch) | |
tree | 721c6c6a7b394dc758ffa12bb3a1261d9817207f /src/lib/CMakeLists.txt | |
parent | 2cc89f6da424ab503af563e0cc92dda43b8f8432 (diff) | |
download | ouroboros-04eb03136466a18d81511e7ccadf51c08faa8edb.tar.gz ouroboros-04eb03136466a18d81511e7ccadf51c08faa8edb.zip |
lib, ipcp: Compile on Apple junk
Disables robust mutexes and clock attributes for condition variables
for compatibility with OSX (SUSv2). Implements clock_gettime and adds
some defines for OSX compatibility in time_utils.
Diffstat (limited to 'src/lib/CMakeLists.txt')
-rw-r--r-- | src/lib/CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 8c058dd8..14e7051a 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -11,9 +11,13 @@ protobuf_generate_c(DIF_CONFIG_PROTO_SRCS DIF_CONFIG_PROTO_HDRS protobuf_generate_c(CDAP_PROTO_SRCS CDAP_PROTO_HDRS cdap.proto) -find_library(LIBRT_LIBRARIES rt) -if(NOT LIBRT_LIBRARIES) - message(FATAL_ERROR "librt not found") +if(NOT APPLE) + find_library(LIBRT_LIBRARIES rt) + if(NOT LIBRT_LIBRARIES) + message(FATAL_ERROR "librt not found") + endif() +else() + set(LIBRT_LIBRARIES "") endif() find_library(LIBPTHREAD_LIBRARIES pthread) |