Document CMAKE_INSTALL_PREFIX in CMAKE_SYSTEM_PREFIX_PATH
Add documentation to both variables to indicate that the install prefix is also searched.
This commit is contained in:
parent
dea8271840
commit
a0b37d7e3b
|
@ -648,6 +648,10 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"WARNING: DESTDIR may not be used on Windows because installation"
|
"WARNING: DESTDIR may not be used on Windows because installation"
|
||||||
" prefix usually contains a drive letter like in \"C:/Program Files\""
|
" prefix usually contains a drive letter like in \"C:/Program Files\""
|
||||||
" which cannot be prepended with some other prefix."
|
" which cannot be prepended with some other prefix."
|
||||||
|
"\n"
|
||||||
|
"The installation prefix is also added to CMAKE_SYSTEM_PREFIX_PATH "
|
||||||
|
"so that find_package, find_program, find_library, find_path, and "
|
||||||
|
"find_file will search the prefix for other software."
|
||||||
,false,
|
,false,
|
||||||
"Variables That Change Behavior");
|
"Variables That Change Behavior");
|
||||||
|
|
||||||
|
@ -725,7 +729,8 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"adds /bin to each of the directories in the path, FIND_LIBRARY() "
|
"adds /bin to each of the directories in the path, FIND_LIBRARY() "
|
||||||
"appends /lib to each of the directories, and FIND_PATH() and "
|
"appends /lib to each of the directories, and FIND_PATH() and "
|
||||||
"FIND_FILE() append /include . By default this contains the standard "
|
"FIND_FILE() append /include . By default this contains the standard "
|
||||||
"directories for the current system. It is NOT intended "
|
"directories for the current system and the CMAKE_INSTALL_PREFIX. "
|
||||||
|
"It is NOT intended "
|
||||||
"to be modified by the project, use CMAKE_PREFIX_PATH for this. See also "
|
"to be modified by the project, use CMAKE_PREFIX_PATH for this. See also "
|
||||||
"CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_SYSTEM_LIBRARY_PATH, "
|
"CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_SYSTEM_LIBRARY_PATH, "
|
||||||
"CMAKE_SYSTEM_PROGRAM_PATH, and CMAKE_SYSTEM_IGNORE_PATH.", false,
|
"CMAKE_SYSTEM_PROGRAM_PATH, and CMAKE_SYSTEM_IGNORE_PATH.", false,
|
||||||
|
|
Loading…
Reference in New Issue