From 60b8114ea9d0dcf155e850ac86be7c6bbe0f69b2 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Fri, 5 Sep 2025 15:25:54 +1000 Subject: [PATCH] Help: Stronger wording for prohibited keywords in FetchContent_Declare() Issue: #27157 --- Modules/FetchContent.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake index 70680de4c0..fb9c2e5a21 100644 --- a/Modules/FetchContent.cmake +++ b/Modules/FetchContent.cmake @@ -120,9 +120,10 @@ Commands The ```` can be any of the download, update, or patch options that the :command:`ExternalProject_Add` command understands. The configure, build, install, and test steps are explicitly disabled, so options related - to those steps will be ignored. The ``SOURCE_SUBDIR`` option is an - exception, see :command:`FetchContent_MakeAvailable` for details on how that - affects behavior. + to those steps are prohibited and will be discarded if given. + The ``SOURCE_SUBDIR`` option is an exception, see + :command:`FetchContent_MakeAvailable` for details on how that affects + behavior. .. versionchanged:: 3.30 When policy :policy:`CMP0168` is set to ``NEW``, some output-related and