mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
7521da2852
This variable can be useful in cross-compiling contexts where the sysroot is read-only or where the sysroot should otherwise remain pristine. If the new CMAKE_STAGING_PREFIX variable is set, it is used instead of CMAKE_INSTALL_PREFIX when generating the installation rules in cmake_install.cmake. This way, the CMAKE_INSTALL_PREFIX variable always refers to the installation prefix on the target device, regardless of whether host==target. If any -rpath paths passed to the linker contain the CMAKE_STAGING_PREFIX, the matching path fragments are replaced with the CMAKE_INSTALL_PREFIX. Matching paths in the -rpath-link are not transformed. The cross-prefix usr-move workaround is assumed not to require extension regarding CMAKE_STAGING_PREFIX. The staging area is a single prefix, so there is no scope for cross-prefix symlinks. The CMAKE_INSTALL_PREFIX is still used to determine the workaround path, and that variable remains the relevant one even if CMAKE_STAGING_PREFIX is used. If the generated export files are deployed to the target, the workaround will still be in place, and still be employed if required.
17 lines
829 B
ReStructuredText
17 lines
829 B
ReStructuredText
CMAKE_SYSTEM_PREFIX_PATH
|
|
------------------------
|
|
|
|
Path used for searching by FIND_XXX(), with appropriate suffixes added.
|
|
|
|
Specifies a path which will be used by the FIND_XXX() commands. It
|
|
contains the "base" directories, the FIND_XXX() commands append
|
|
appropriate subdirectories to the base directories. So FIND_PROGRAM()
|
|
adds /bin to each of the directories in the path, FIND_LIBRARY()
|
|
appends /lib to each of the directories, and FIND_PATH() and
|
|
FIND_FILE() append /include . By default this contains the standard
|
|
directories for the current system, the CMAKE_INSTALL_PREFIX and
|
|
the :variable:`CMAKE_STAGING_PREFIX`. It is NOT intended to be modified by
|
|
the project, use CMAKE_PREFIX_PATH for this. See also CMAKE_SYSTEM_INCLUDE_PATH,
|
|
CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_SYSTEM_PROGRAM_PATH, and
|
|
CMAKE_SYSTEM_IGNORE_PATH.
|