summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-05-25 08:59:01 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-05-29 08:52:24 (GMT)
commit4370fcf7505bf0dc651478ab581f19c474278c59 (patch)
treeb50809ab854330bfb7cb8012f4121c28ec7e5974 /Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake
parentbc70b458adb6204fc47a6f19c3216fcac86573ce (diff)
downloadCMake-4370fcf7505bf0dc651478ab581f19c474278c59.zip
CMake-4370fcf7505bf0dc651478ab581f19c474278c59.tar.gz
CMake-4370fcf7505bf0dc651478ab581f19c474278c59.tar.bz2
FetchContent: Deprecate FetchContent_Populate(depName)
Projects should use FetchContent_MakeAvailable(depName) instead. Policy CMP0169 provides backward compatibility.
Diffstat (limited to 'Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake')
-rw-r--r--Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake b/Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake
index 4f35448..6da6c42 100644
--- a/Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake
+++ b/Tests/RunCMake/FetchContent/PreserveEmptyArgs.cmake
@@ -1,3 +1,5 @@
+cmake_policy(SET CMP0169 OLD)
+
include(FetchContent)
# Need to see the download command output