1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
include(FetchContent) # Need to see the download command output set(FETCHCONTENT_QUIET OFF) FetchContent_Declare( t1 DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "First details used" ) FetchContent_Declare( t1 DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "Second details used" ) FetchContent_Populate(t1)