Fix get_(cmake|test)_property documentation (#11703)
The signature of get_test_property uses argument order test property VAR not test VAR property Also document the actual behavior when the property is not found.
This commit is contained in:
parent
6b084f1e04
commit
0d7cf4951a
@ -54,9 +54,10 @@ public:
|
|||||||
{
|
{
|
||||||
return
|
return
|
||||||
" get_cmake_property(VAR property)\n"
|
" get_cmake_property(VAR property)\n"
|
||||||
"Get a property from the CMake instance. The value of the "
|
"Get a property from the CMake instance. "
|
||||||
"property is stored in the variable VAR. If the property is "
|
"The value of the property is stored in the variable VAR. "
|
||||||
"not found, CMake will report an error. Some supported properties "
|
"If the property is not found, VAR will be set to \"NOTFOUND\". "
|
||||||
|
"Some supported properties "
|
||||||
"include: VARIABLES, CACHE_VARIABLES, COMMANDS, MACROS, and "
|
"include: VARIABLES, CACHE_VARIABLES, COMMANDS, MACROS, and "
|
||||||
"COMPONENTS.";
|
"COMPONENTS.";
|
||||||
}
|
}
|
||||||
|
@ -48,10 +48,10 @@ public:
|
|||||||
virtual const char* GetFullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
" get_test_property(test VAR property)\n"
|
" get_test_property(test property VAR)\n"
|
||||||
"Get a property from the Test. The value of the property is "
|
"Get a property from the Test. The value of the property is "
|
||||||
"stored in the variable VAR. If the property is not found, "
|
"stored in the variable VAR. If the property is not found, VAR "
|
||||||
"CMake will report an error. For a list of standard properties "
|
"will be set to \"NOTFOUND\". For a list of standard properties "
|
||||||
"you can type cmake --help-property-list";
|
"you can type cmake --help-property-list";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user