mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-19 13:40:42 -06:00
Projects should use FetchContent_MakeAvailable(depName) instead. Policy CMP0169 provides backward compatibility.
16 lines
316 B
CMake
16 lines
316 B
CMake
cmake_policy(SET CMP0169 OLD)
|
|
|
|
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)
|