From 56559c51cf20672f861463813e109931ecd8a021 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Fri, 20 Jan 2017 22:55:20 +0100 Subject: [PATCH] cmake: librt is found only on Linux --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81c1304ad6..720131a4c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -450,7 +450,7 @@ if(ANDROID) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) -elseif(NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES OpenBSD) +elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") list(APPEND LIBS rt) endif()