From 5a8555c53f7c7e2c028410c6a838b6657ed74875 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Fri, 18 Sep 2020 18:53:30 +0200 Subject: CMake: Fix FindWrapRt We must use the LIBRT location instead of LIBRT_FOUND which is not set anywhere. I failed to replace this one in my previous patch. Change-Id: I6e2df82c31e29018d99afec1eecfb80a321fddd4 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 f2459dd3ea..779d18d1a0 100644 --- a/cmake/FindWrapRt.cmake +++ b/cmake/FindWrapRt.cmake @@ -31,7 +31,7 @@ cmake_pop_check_state() if(HAVE_GETTIME) set(WrapRt_FOUND ON) add_library(WrapRt::WrapRt INTERFACE IMPORTED) - if (LIBRT_FOUND) + if (LIBRT) target_link_libraries(WrapRt::WrapRt INTERFACE "${LIBRT}") endif() endif() -- cgit v1.2.3