CMAKE_FIND_NO_INSTALL_PREFIX.rst 692 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 :variable:`CMAKE_FIND_NO_INSTALL_PREFIX` to TRUE to tell find_package not
  9. to search in the :variable:`CMAKE_INSTALL_PREFIX` or
  10. :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.