diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 05:26:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 14:21:39 (GMT) |
commit | eeebf31e54a04eee7a2a91bf80fce5a8fbae7e67 (patch) | |
tree | 2bdd82a16a1b0c684d04a9c67d201de803ec2f4b /Source/Modules | |
parent | 08be01a1813c497c03240e302efb900e2663532b (diff) | |
download | CMake-eeebf31e54a04eee7a2a91bf80fce5a8fbae7e67.zip CMake-eeebf31e54a04eee7a2a91bf80fce5a8fbae7e67.tar.gz CMake-eeebf31e54a04eee7a2a91bf80fce5a8fbae7e67.tar.bz2 |
Build: Use imported target `LibRHash::LibRHash` 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 71dd37f..e420c67 100644 --- a/Source/Modules/CMakeBuildUtilities.cmake +++ b/Source/Modules/CMakeBuildUtilities.cmake @@ -105,10 +105,9 @@ if(CMAKE_USE_SYSTEM_LIBRHASH) message(FATAL_ERROR "CMAKE_USE_SYSTEM_LIBRHASH is ON but LibRHash is not found!") endif() - set(CMAKE_LIBRHASH_LIBRARIES LibRHash::LibRHash) else() - set(CMAKE_LIBRHASH_LIBRARIES cmlibrhash) add_subdirectory(Utilities/cmlibrhash) + add_library(LibRHash::LibRHash ALIAS cmlibrhash) CMAKE_SET_TARGET_FOLDER(cmlibrhash "Utilities/3rdParty") endif() |