Docs: Clarify CMAKE_PARENT_LIST_FILE (#14194)
Fix the wording of the documentation for CMAKE_PARENT_LIST_FILE to clarify that it only applies to the include stack in the current directory. Specify exactly what commands can include files instead of saying "somehow invoke".
This commit is contained in:
parent
c9be17c860
commit
b62d440ea8
|
@ -345,11 +345,12 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_PARENT_LIST_FILE", cmProperty::VARIABLE,
|
("CMAKE_PARENT_LIST_FILE", cmProperty::VARIABLE,
|
||||||
"Full path to the parent listfile of the one currently being processed.",
|
"Full path to the CMake file that included the current one.",
|
||||||
"As CMake processes the listfiles in your project this "
|
"While processing a CMake file loaded by include() or find_package() "
|
||||||
"variable will always be set to the listfile that included "
|
"this variable contains the full path to the file including it. "
|
||||||
"or somehow invoked the one currently being "
|
"The top of the include stack is always the CMakeLists.txt for the "
|
||||||
"processed. See also CMAKE_CURRENT_LIST_FILE.",false,
|
"current directory. "
|
||||||
|
"See also CMAKE_CURRENT_LIST_FILE.",false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
|
|
Loading…
Reference in New Issue