Browse Source

Merge topic 'better_cross-ref_CMAKE_FIND_NO_INSTALL_PREFIX'

7dc654a017 Help: Better cross-reference CMAKE_FIND_NO_INSTALL_PREFIX

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7097
Brad King 3 years ago
parent
commit
4ee256d8eb

+ 3 - 1
Help/variable/CMAKE_INSTALL_PREFIX.rst

@@ -16,7 +16,9 @@ variable for more information.
 The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH`
 The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH`
 so that :command:`find_package`, :command:`find_program`,
 so that :command:`find_package`, :command:`find_program`,
 :command:`find_library`, :command:`find_path`, and :command:`find_file`
 :command:`find_library`, :command:`find_path`, and :command:`find_file`
-will search the prefix for other software.
+will search the prefix for other software. This behavior can be disabled by
+setting the :variable:`CMAKE_FIND_NO_INSTALL_PREFIX` to ``TRUE`` before the
+first :command:`project` invocation.
 
 
 .. note::
 .. note::
 
 

+ 2 - 1
Help/variable/CMAKE_SYSTEM_PREFIX_PATH.rst

@@ -11,7 +11,8 @@ documentation.
 By default this contains the system directories for the current system, the
 By default this contains the system directories for the current system, the
 :variable:`CMAKE_INSTALL_PREFIX`, and the :variable:`CMAKE_STAGING_PREFIX`.
 :variable:`CMAKE_INSTALL_PREFIX`, and the :variable:`CMAKE_STAGING_PREFIX`.
 The installation and staging prefixes may be excluded by setting
 The installation and staging prefixes may be excluded by setting
-the :variable:`CMAKE_FIND_NO_INSTALL_PREFIX` variable.
+the :variable:`CMAKE_FIND_NO_INSTALL_PREFIX` variable before the
+first :command:`project` invocation.
 
 
 The system directories that are contained in ``CMAKE_SYSTEM_PREFIX_PATH`` are
 The system directories that are contained in ``CMAKE_SYSTEM_PREFIX_PATH`` are
 locations that typically include installed software. An example being
 locations that typically include installed software. An example being