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:
Julien Schueller 2020-09-18 18:53:30 +02:00
parent cdc7bff115
commit 5a8555c53f

View File

@ -31,7 +31,7 @@ cmake_pop_check_state()
if(HAVE_GETTIME)
set(WrapRt_FOUND ON)
add_library(WrapRt::WrapRt INTERFACE IMPORTED)
if (LIBRT_FOUND)
if (LIBRT)
target_link_libraries(WrapRt::WrapRt INTERFACE "${LIBRT}")
endif()
endif()