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()