summaryrefslogtreecommitdiffstats
path: root/cmake/FindWrapRt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindWrapRt.cmake')
-rw-r--r--cmake/FindWrapRt.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/FindWrapRt.cmake b/cmake/FindWrapRt.cmake
index 0e57cadef5..6a138d348f 100644
--- a/cmake/FindWrapRt.cmake
+++ b/cmake/FindWrapRt.cmake
@@ -1,6 +1,6 @@
# We can't create the same interface imported target multiple times, CMake will complain if we do
# that. This can happen if the find_package call is done in multiple different subdirectories.
-if(TARGET WrapRt)
+if(TARGET WrapRt::WrapRt)
set(WrapRt_FOUND ON)
return()
endif()
@@ -30,8 +30,8 @@ cmake_pop_check_state()
if(HAVE_GETTIME)
set(WrapRt_FOUND ON)
- add_library(WrapRt INTERFACE IMPORTED)
+ add_library(WrapRt::WrapRt INTERFACE IMPORTED)
if (LIBRT_FOUND)
- target_link_libraries(WrapRt INTERFACE "${LIBRT}")
+ target_link_libraries(WrapRt::WrapRt INTERFACE "${LIBRT}")
endif()
endif()