mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
29e31e2825
Allow FetchContent_MakeAvailable() to try a call to find_package() first, or redirect a find_package() call to FetchContent_MakeAvailable(). The user can set variables to control which of these are allowed or tried by default. Fixes: #21687
14 lines
285 B
CMake
14 lines
285 B
CMake
include(FetchContent)
|
|
|
|
# Need to see the download command output
|
|
set(FETCHCONTENT_QUIET OFF)
|
|
|
|
FetchContent_Declare(
|
|
t1
|
|
DOWNLOAD_COMMAND ${CMAKE_COMMAND} -P
|
|
${CMAKE_CURRENT_LIST_DIR}/countArgs.cmake
|
|
before "" after
|
|
)
|
|
|
|
FetchContent_Populate(t1)
|