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