CMAKE_FIND_NO_INSTALL_PREFIX.rst 699 B

123456789101112131415
  1. CMAKE_FIND_NO_INSTALL_PREFIX
  2. ----------------------------
  3. Ignore the :variable:`CMAKE_INSTALL_PREFIX` when searching for assets.
  4. CMake adds the :variable:`CMAKE_INSTALL_PREFIX` and the
  5. :variable:`CMAKE_STAGING_PREFIX` variable to the
  6. :variable:`CMAKE_SYSTEM_PREFIX_PATH` by default. This variable may be set
  7. on the command line to control that behavior.
  8. Set ``CMAKE_FIND_NO_INSTALL_PREFIX`` to ``TRUE`` to tell
  9. :command:`find_package` not to search in the :variable:`CMAKE_INSTALL_PREFIX`
  10. or :variable:`CMAKE_STAGING_PREFIX` by default. Note that the
  11. prefix may still be searched for other reasons, such as being the same prefix
  12. as the CMake installation, or for being a built-in system prefix.