diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 05:23:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 14:21:38 (GMT) |
commit | 08be01a1813c497c03240e302efb900e2663532b (patch) | |
tree | 579374aa82a4ef818f2d197708a4cbc41b3a8d17 /Source/Modules | |
parent | ddac6dcbe8029a5850377ffb9aee088d9493e2ce (diff) | |
download | CMake-08be01a1813c497c03240e302efb900e2663532b.zip CMake-08be01a1813c497c03240e302efb900e2663532b.tar.gz CMake-08be01a1813c497c03240e302efb900e2663532b.tar.bz2 |
Build: Use imported target `LibUV::LibUV` instead of variables
Diffstat (limited to 'Source/Modules')
-rw-r--r-- | Source/Modules/CMakeBuildUtilities.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Modules/CMakeBuildUtilities.cmake b/Source/Modules/CMakeBuildUtilities.cmake index b17c7ce..71dd37f 100644 --- a/Source/Modules/CMakeBuildUtilities.cmake +++ b/Source/Modules/CMakeBuildUtilities.cmake @@ -336,10 +336,9 @@ if(CMAKE_USE_SYSTEM_LIBUV) message(FATAL_ERROR "CMAKE_USE_SYSTEM_LIBUV is ON but a libuv is not found!") endif() - set(CMAKE_LIBUV_LIBRARIES LibUV::LibUV) else() - set(CMAKE_LIBUV_LIBRARIES cmlibuv) add_subdirectory(Utilities/cmlibuv) + add_library(LibUV::LibUV ALIAS cmlibuv) CMAKE_SET_TARGET_FOLDER(cmlibuv "Utilities/3rdParty") endif() |