CMake: Fix FindWrapRt

Actually link to librt to fix detection

Change-Id: I819d9b57212fef7f539ef807846e06beb7bd617b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Julien Schueller 2020-09-11 19:45:40 +02:00
parent cf33d64528
commit a16803d3e4

View File

@ -13,7 +13,7 @@ include(CMakePushCheckState)
find_library(LIBRT rt) find_library(LIBRT rt)
cmake_push_check_state() cmake_push_check_state()
if(LIBRT_FOUND) if(LIBRT)
list(APPEND CMAKE_REQUIRED_LIBRARIES "${LIBRT}") list(APPEND CMAKE_REQUIRED_LIBRARIES "${LIBRT}")
endif() endif()