mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
Utilities: Announce both system-installed and bundled dependencies
CMake already says if it's using a system-installed component when
configuring:
-- Using system-installed BZIP2
For clarity, also list what components are using the bundled source
code. Example output:
-- Using system installed: ZLIB
-- Using bundled: BZIP2 CPPDAP CURL EXPAT FORM JSONCPP LIBARCHIVE
LIBLZMA LIBRHASH LIBUV NGHTTP2 ZSTD KWIML
This is useful when verifying packaging of CMake itself.
This commit is contained in:
+14
-1
@@ -225,11 +225,24 @@ macro(CMAKE_HANDLE_SYSTEM_LIBRARIES)
|
|||||||
# Avoid messaging about curl-only dependencies.
|
# Avoid messaging about curl-only dependencies.
|
||||||
list(REMOVE_ITEM UTILITIES NGHTTP2)
|
list(REMOVE_ITEM UTILITIES NGHTTP2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(DEPS_SYSTEM "")
|
||||||
|
set(DEPS_BUNDLED "")
|
||||||
foreach(util IN LISTS UTILITIES ITEMS KWIML)
|
foreach(util IN LISTS UTILITIES ITEMS KWIML)
|
||||||
if(CMAKE_USE_SYSTEM_${util})
|
if(CMAKE_USE_SYSTEM_${util})
|
||||||
message(STATUS "Using system-installed ${util}")
|
string(APPEND DEPS_SYSTEM " ${util}")
|
||||||
|
else()
|
||||||
|
string(APPEND DEPS_BUNDLED " ${util}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
if(DEPS_SYSTEM)
|
||||||
|
message(STATUS "Using system-installed:${DEPS_SYSTEM}")
|
||||||
|
endif()
|
||||||
|
if(DEPS_BUNDLED)
|
||||||
|
message(STATUS "Using bundled:${DEPS_BUNDLED}")
|
||||||
|
endif()
|
||||||
|
unset(DEPS_SYSTEM)
|
||||||
|
unset(DEPS_BUNDLED)
|
||||||
|
|
||||||
# Inform utility library header wrappers whether to use system versions.
|
# Inform utility library header wrappers whether to use system versions.
|
||||||
configure_file(Utilities/cmThirdParty.h.in Utilities/cmThirdParty.h @ONLY)
|
configure_file(Utilities/cmThirdParty.h.in Utilities/cmThirdParty.h @ONLY)
|
||||||
|
|||||||
Reference in New Issue
Block a user