diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 05:05:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 14:21:38 (GMT) |
commit | 9cdf5a67790ef78292366268af0a3de4b5cc3892 (patch) | |
tree | 52629400536620bc90d03083d8d9150120ec4bf6 | |
parent | 2be5a7de4ea987649dfc1ac669928fecf2613046 (diff) | |
download | CMake-9cdf5a67790ef78292366268af0a3de4b5cc3892.zip CMake-9cdf5a67790ef78292366268af0a3de4b5cc3892.tar.gz CMake-9cdf5a67790ef78292366268af0a3de4b5cc3892.tar.bz2 |
Build: Use imported target `EXPAT::EXPAT` instead of variables
-rw-r--r-- | Source/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Source/Modules/CMakeBuildUtilities.cmake | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 3edaabb..93b3f0c 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -743,7 +743,6 @@ target_include_directories( "${CMake_BINARY_DIR}/Source" "${CMake_SOURCE_DIR}/Source" "${CMake_SOURCE_DIR}/Source/LexerParser" - ${CMAKE_EXPAT_INCLUDES} ${CMAKE_TAR_INCLUDES} ${CMake_HAIKU_INCLUDE_DIRS} ) @@ -752,8 +751,8 @@ target_link_libraries( PUBLIC cmstd cmsys + EXPAT::EXPAT ZLIB::ZLIB - ${CMAKE_EXPAT_LIBRARIES} ${CMAKE_TAR_LIBRARIES} ${CMAKE_CURL_LIBRARIES} ${CMAKE_JSONCPP_LIBRARIES} diff --git a/Source/Modules/CMakeBuildUtilities.cmake b/Source/Modules/CMakeBuildUtilities.cmake index f217f9b..dad4bc1 100644 --- a/Source/Modules/CMakeBuildUtilities.cmake +++ b/Source/Modules/CMakeBuildUtilities.cmake @@ -197,6 +197,7 @@ else() set(CMAKE_EXPAT_INCLUDES) set(CMAKE_EXPAT_LIBRARIES cmexpat) add_subdirectory(Utilities/cmexpat) + add_library(EXPAT::EXPAT ALIAS cmexpat) CMAKE_SET_TARGET_FOLDER(cmexpat "Utilities/3rdParty") endif() |