Sindbad~EG File Manager
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
<title>INSTALL_RPATH — CMake 3.26.5 Documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/cmake.css" />
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../_static/doctools.js"></script>
<link rel="shortcut icon" href="../_static/cmake-favicon.ico"/>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="INSTALL_RPATH_USE_LINK_PATH" href="INSTALL_RPATH_USE_LINK_PATH.html" />
<link rel="prev" title="INSTALL_REMOVE_ENVIRONMENT_RPATH" href="INSTALL_REMOVE_ENVIRONMENT_RPATH.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="INSTALL_RPATH_USE_LINK_PATH.html" title="INSTALL_RPATH_USE_LINK_PATH"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="INSTALL_REMOVE_ENVIRONMENT_RPATH.html" title="INSTALL_REMOVE_ENVIRONMENT_RPATH"
accesskey="P">previous</a> |</li>
<li>
<img src="../_static/cmake-logo-16.png" alt=""
style="vertical-align: middle; margin-top: -2px" />
</li>
<li>
<a href="https://cmake.org/">CMake</a> »
</li>
<li>
<a href="../index.html">3.26.5 Documentation</a> »
</li>
<li class="nav-item nav-item-1"><a href="../manual/cmake-properties.7.html" accesskey="U">cmake-properties(7)</a> »</li>
<li class="nav-item nav-item-this"><a href="">INSTALL_RPATH</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="install-rpath">
<span id="prop_tgt:INSTALL_RPATH"></span><h1>INSTALL_RPATH<a class="headerlink" href="#install-rpath" title="Permalink to this heading">ΒΆ</a></h1>
<p>The rpath to use for installed targets.</p>
<p>By default, the install rpath is empty. It can be set using this property,
which is a semicolon-separated list specifying the rpath to use in installed
targets (for platforms that support it). This property is initialized
by the value of the variable <span class="target" id="index-0-variable:CMAKE_INSTALL_RPATH"></span><a class="reference internal" href="../variable/CMAKE_INSTALL_RPATH.html#variable:CMAKE_INSTALL_RPATH" title="CMAKE_INSTALL_RPATH"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_INSTALL_RPATH</span></code></a> if it is set
when a target is created.
Beside setting the install rpath manually, using the
<span class="target" id="index-0-prop_tgt:INSTALL_RPATH_USE_LINK_PATH"></span><a class="reference internal" href="INSTALL_RPATH_USE_LINK_PATH.html#prop_tgt:INSTALL_RPATH_USE_LINK_PATH" title="INSTALL_RPATH_USE_LINK_PATH"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">INSTALL_RPATH_USE_LINK_PATH</span></code></a> target property it can also be
generated automatically by CMake.</p>
<p>Normally CMake uses the build tree for the RPATH when building executables
etc on systems that use RPATH, see the <span class="target" id="index-0-prop_tgt:BUILD_RPATH"></span><a class="reference internal" href="BUILD_RPATH.html#prop_tgt:BUILD_RPATH" title="BUILD_RPATH"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">BUILD_RPATH</span></code></a> target
property. When the software is installed
the targets are edited (or relinked) by CMake (see
<span class="target" id="index-0-variable:CMAKE_NO_BUILTIN_CHRPATH"></span><a class="reference internal" href="../variable/CMAKE_NO_BUILTIN_CHRPATH.html#variable:CMAKE_NO_BUILTIN_CHRPATH" title="CMAKE_NO_BUILTIN_CHRPATH"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_NO_BUILTIN_CHRPATH</span></code></a>) to have the install RPATH.
This editing during installation can be avoided via
the <span class="target" id="index-0-prop_tgt:BUILD_WITH_INSTALL_RPATH"></span><a class="reference internal" href="BUILD_WITH_INSTALL_RPATH.html#prop_tgt:BUILD_WITH_INSTALL_RPATH" title="BUILD_WITH_INSTALL_RPATH"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">BUILD_WITH_INSTALL_RPATH</span></code></a> target property.</p>
<p>For handling toolchain-dependent RPATH entries the
<span class="target" id="index-0-prop_tgt:INSTALL_REMOVE_ENVIRONMENT_RPATH"></span><a class="reference internal" href="INSTALL_REMOVE_ENVIRONMENT_RPATH.html#prop_tgt:INSTALL_REMOVE_ENVIRONMENT_RPATH" title="INSTALL_REMOVE_ENVIRONMENT_RPATH"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">INSTALL_REMOVE_ENVIRONMENT_RPATH</span></code></a> can be used.
Runtime paths can be disabled completely via the <span class="target" id="index-0-variable:CMAKE_SKIP_RPATH"></span><a class="reference internal" href="../variable/CMAKE_SKIP_RPATH.html#variable:CMAKE_SKIP_RPATH" title="CMAKE_SKIP_RPATH"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_SKIP_RPATH</span></code></a>
variable.</p>
<p>Because the rpath may contain <code class="docutils literal notranslate"><span class="pre">${ORIGIN}</span></code>, which coincides with CMake syntax,
the contents of <code class="docutils literal notranslate"><span class="pre">INSTALL_RPATH</span></code> are properly escaped in the
<code class="docutils literal notranslate"><span class="pre">cmake_install.cmake</span></code> script (see policy <span class="target" id="index-0-policy:CMP0095"></span><a class="reference internal" href="../policy/CMP0095.html#policy:CMP0095" title="CMP0095"><code class="xref cmake cmake-policy docutils literal notranslate"><span class="pre">CMP0095</span></code></a>.)</p>
<p>This property supports
<span class="target" id="index-0-manual:cmake-generator-expressions(7)"></span><a class="reference internal" href="../manual/cmake-generator-expressions.7.html#manual:cmake-generator-expressions(7)" title="cmake-generator-expressions(7)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">generator</span> <span class="pre">expressions</span></code></a>.</p>
<p>On Apple platforms, refer to the <span class="target" id="index-0-prop_tgt:INSTALL_NAME_DIR"></span><a class="reference internal" href="INSTALL_NAME_DIR.html#prop_tgt:INSTALL_NAME_DIR" title="INSTALL_NAME_DIR"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">INSTALL_NAME_DIR</span></code></a> target property.
Under Windows, the <span class="target" id="index-0-genex:TARGET_RUNTIME_DLLS"></span><a class="reference internal" href="../manual/cmake-generator-expressions.7.html#genex:TARGET_RUNTIME_DLLS" title="TARGET_RUNTIME_DLLS"><code class="xref cmake cmake-genex docutils literal notranslate"><span class="pre">TARGET_RUNTIME_DLLS</span></code></a> generator expression is related.</p>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="INSTALL_REMOVE_ENVIRONMENT_RPATH.html"
title="previous chapter">INSTALL_REMOVE_ENVIRONMENT_RPATH</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="INSTALL_RPATH_USE_LINK_PATH.html"
title="next chapter">INSTALL_RPATH_USE_LINK_PATH</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/prop_tgt/INSTALL_RPATH.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>document.getElementById('searchbox').style.display = "block"</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="INSTALL_RPATH_USE_LINK_PATH.html" title="INSTALL_RPATH_USE_LINK_PATH"
>next</a> |</li>
<li class="right" >
<a href="INSTALL_REMOVE_ENVIRONMENT_RPATH.html" title="INSTALL_REMOVE_ENVIRONMENT_RPATH"
>previous</a> |</li>
<li>
<img src="../_static/cmake-logo-16.png" alt=""
style="vertical-align: middle; margin-top: -2px" />
</li>
<li>
<a href="https://cmake.org/">CMake</a> »
</li>
<li>
<a href="../index.html">3.26.5 Documentation</a> »
</li>
<li class="nav-item nav-item-1"><a href="../manual/cmake-properties.7.html" >cmake-properties(7)</a> »</li>
<li class="nav-item nav-item-this"><a href="">INSTALL_RPATH</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2000-2023 Kitware, Inc. and Contributors.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists