diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-09-17 16:30:40 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-09-17 16:30:40 +0300 |
commit | bf43501be294d0c0662a3ac515f180a9dfa78035 (patch) | |
tree | 20726e44e16804ff1a6489c07f408b829bb9734e | |
parent | 47e98b1bb3c540db03c326e2e9bd249b09815aec (diff) |
Another try at librt
-rw-r--r-- | util/CMakeLists.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt index 74e463c..3f28c92 100644 --- a/util/CMakeLists.txt +++ b/util/CMakeLists.txt @@ -57,11 +57,8 @@ set_source_files_properties(file_piece_test.cc PROPERTIES COMPILE_FLAGS ${READ_C add_subdirectory(double-conversion) add_subdirectory(stream) -find_library(LIBRT rt) -if (LIBRT) - set(RT ${LIBRT}) -else() - set(RT) +if(UNIX AND NOT APPLE AND NOT ANDROID) + set(RT rt) endif() # Group these objects together for later use. |