From a16803d3e485a7ed102ffae9a6b7394e621fedb9 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Fri, 11 Sep 2020 19:45:40 +0200 Subject: [PATCH] CMake: Fix FindWrapRt Actually link to librt to fix detection Change-Id: I819d9b57212fef7f539ef807846e06beb7bd617b Reviewed-by: Alexandru Croitor --- cmake/FindWrapRt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindWrapRt.cmake b/cmake/FindWrapRt.cmake index 98acf2c0f3..f2459dd3ea 100644 --- a/cmake/FindWrapRt.cmake +++ b/cmake/FindWrapRt.cmake @@ -13,7 +13,7 @@ include(CMakePushCheckState) find_library(LIBRT rt) cmake_push_check_state() -if(LIBRT_FOUND) +if(LIBRT) list(APPEND CMAKE_REQUIRED_LIBRARIES "${LIBRT}") endif()