CMake: Fix FindWrapRt
Actually link to librt to fix detection Change-Id: I819d9b57212fef7f539ef807846e06beb7bd617b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>bb10
parent
cf33d64528
commit
a16803d3e4
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue