summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Schueller <schueller@phimeca.com>2020-09-18 18:53:30 +0200
committerJulien Schueller <schueller@phimeca.com>2020-09-18 20:25:58 +0200
commit5a8555c53f7c7e2c028410c6a838b6657ed74875 (patch)
treea3cd12ed912797a754fb1a746b505feccf7445c0
parentcdc7bff115c296474ea871549da91de09c3a020d (diff)
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 <alexandru.croitor@qt.io>
-rw-r--r--cmake/FindWrapRt.cmake2
1 files changed, 1 insertions, 1 deletions
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()