cmake/Help/variable/CMAKE_SKIP_INSTALL_RPATH.rst

20 lines
830 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
CMAKE_SKIP_INSTALL_RPATH
------------------------
Do not include RPATHs in the install tree.
Normally CMake uses the build tree for the RPATH when building
executables etc on systems that use RPATH. When the software is
installed the executables etc are relinked by CMake to have the
install RPATH. If this variable is set to true then the software is
always installed without RPATH, even if RPATH is enabled when
building. This can be useful for example to allow running tests from
the build directory with RPATH enabled before the installation step.
2023-05-23 16:38:00 +02:00
See also the :variable:`CMAKE_SKIP_BUILD_RPATH` variable.
2014-08-03 19:52:23 +02:00
To omit RPATH in both the build and install steps, use
2015-11-17 17:22:37 +01:00
:variable:`CMAKE_SKIP_RPATH` instead.
2023-05-23 16:38:00 +02:00
For more information on RPATH handling see the :prop_tgt:`INSTALL_RPATH`
and :prop_tgt:`BUILD_RPATH` target properties.