diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-01-20 08:53:27 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2019-01-26 05:49:15 (GMT) |
commit | a94355c7b781378f73b70010ee97f9d5d6209e68 (patch) | |
tree | c2898dac198110027e97fe2a75fab12538e4c204 /Tests/RunCMake/FetchContent/MakeAvailableTwice.cmake | |
parent | 611d5274de677a42bdf744c48f0e4a29ea1bb1cd (diff) | |
download | CMake-a94355c7b781378f73b70010ee97f9d5d6209e68.zip CMake-a94355c7b781378f73b70010ee97f9d5d6209e68.tar.gz CMake-a94355c7b781378f73b70010ee97f9d5d6209e68.tar.bz2 |
FetchContent: Add new command FetchContent_MakeAvailable()
Relates: #18754
Diffstat (limited to 'Tests/RunCMake/FetchContent/MakeAvailableTwice.cmake')
-rw-r--r-- | Tests/RunCMake/FetchContent/MakeAvailableTwice.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/MakeAvailableTwice.cmake b/Tests/RunCMake/FetchContent/MakeAvailableTwice.cmake new file mode 100644 index 0000000..a9af020 --- /dev/null +++ b/Tests/RunCMake/FetchContent/MakeAvailableTwice.cmake @@ -0,0 +1,12 @@ +include(FetchContent) + +FetchContent_Declare( + WithProject + SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/WithProject +) + +message(STATUS "Before first") +FetchContent_MakeAvailable(WithProject) +message(STATUS "Between both") +FetchContent_MakeAvailable(WithProject) +message(STATUS "After last") |