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:
parent
cf33d64528
commit
a16803d3e4
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user