CMake: Fix FindWrapRt
We must use the LIBRT location instead of LIBRT_FOUND which is not set anywhere. I failed to replace this one in my previous patch. Change-Id: I6e2df82c31e29018d99afec1eecfb80a321fddd4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
cdc7bff115
commit
5a8555c53f
@ -31,7 +31,7 @@ cmake_pop_check_state()
|
|||||||
if(HAVE_GETTIME)
|
if(HAVE_GETTIME)
|
||||||
set(WrapRt_FOUND ON)
|
set(WrapRt_FOUND ON)
|
||||||
add_library(WrapRt::WrapRt INTERFACE IMPORTED)
|
add_library(WrapRt::WrapRt INTERFACE IMPORTED)
|
||||||
if (LIBRT_FOUND)
|
if (LIBRT)
|
||||||
target_link_libraries(WrapRt::WrapRt INTERFACE "${LIBRT}")
|
target_link_libraries(WrapRt::WrapRt INTERFACE "${LIBRT}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user