FetchContent: Correct the documentation for FetchContent_MakeAvailable

The intended input variable is `FETCHCONTENT_SOURCE_DIR_<uppercaseName>` rather than `<lowercaseName>_SOURCE_DIR`, which is an output-only variable. This matches the actual implementation of `FetchContent_MakeAvailable` and the documentation for `cmake_language`.
This commit is contained in:
Chengfeng Xie
2026-05-26 12:17:08 +08:00
parent bda0b36155
commit 38f30ac2b4
+1 -1
View File
@@ -258,7 +258,7 @@ Commands
:command:`FetchContent_Declare` for each dependency, and the first such call
will control how that dependency will be made available, as described below.
If ``<lowercaseName>_SOURCE_DIR`` is not set:
If ``FETCHCONTENT_SOURCE_DIR_<uppercaseName>`` is not set:
* .. versionadded:: 3.24