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>CMAKE_<LANG>_COMPILER — 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="CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN" href="CMAKE_LANG_COMPILER_EXTERNAL_TOOLCHAIN.html" />
<link rel="prev" title="CMAKE_<LANG>_COMPILE_OBJECT" href="CMAKE_LANG_COMPILE_OBJECT.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="CMAKE_LANG_COMPILER_EXTERNAL_TOOLCHAIN.html" title="CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="CMAKE_LANG_COMPILE_OBJECT.html" title="CMAKE_<LANG>_COMPILE_OBJECT"
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-variables.7.html" accesskey="U">cmake-variables(7)</a> »</li>
<li class="nav-item nav-item-this"><a href="">CMAKE_<LANG>_COMPILER</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="cmake-lang-compiler">
<span id="variable:CMAKE_<LANG>_COMPILER"></span><h1>CMAKE_<LANG>_COMPILER<a class="headerlink" href="#cmake-lang-compiler" title="Permalink to this heading">¶</a></h1>
<p>The full path to the compiler for <code class="docutils literal notranslate"><span class="pre">LANG</span></code>.</p>
<p>This is the command that will be used as the <code class="docutils literal notranslate"><span class="pre"><LANG></span></code> compiler. Once
set, you can not change this variable.</p>
<section id="usage">
<h2>Usage<a class="headerlink" href="#usage" title="Permalink to this heading">¶</a></h2>
<p>This variable can be set by the user during the first time a build tree is configured.</p>
<p>If a non-full path value is supplied then CMake will resolve the full path of
the compiler.</p>
<p>The variable could be set in a user supplied toolchain file or via
<a class="reference internal" href="../manual/cmake.1.html#cmdoption-cmake-D"><code class="xref std std-option docutils literal notranslate"><span class="pre">-D</span></code></a> on the command line.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Options that are required to make the compiler work correctly can be included
as items in a list; they can not be changed.</p>
</div>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="c">#set within user supplied toolchain file</span>
<span class="nf">set(</span><span class="no">CMAKE_C_COMPILER</span><span class="w"> </span><span class="na">/full/path/to/qcc</span><span class="w"> </span><span class="p">--</span><span class="nb">arg1</span><span class="w"> </span><span class="p">--</span><span class="nb">arg2</span><span class="nf">)</span><span class="w"></span>
</pre></div>
</div>
<p>or</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake ... -DCMAKE_C_COMPILER<span class="o">=</span><span class="s1">'qcc;--arg1;--arg2'</span>
</pre></div>
</div>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div>
<h3><a href="../index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">CMAKE_<LANG>_COMPILER</a><ul>
<li><a class="reference internal" href="#usage">Usage</a></li>
</ul>
</li>
</ul>
</div>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="CMAKE_LANG_COMPILE_OBJECT.html"
title="previous chapter">CMAKE_<LANG>_COMPILE_OBJECT</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="CMAKE_LANG_COMPILER_EXTERNAL_TOOLCHAIN.html"
title="next chapter">CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/variable/CMAKE_LANG_COMPILER.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="CMAKE_LANG_COMPILER_EXTERNAL_TOOLCHAIN.html" title="CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN"
>next</a> |</li>
<li class="right" >
<a href="CMAKE_LANG_COMPILE_OBJECT.html" title="CMAKE_<LANG>_COMPILE_OBJECT"
>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-variables.7.html" >cmake-variables(7)</a> »</li>
<li class="nav-item nav-item-this"><a href="">CMAKE_<LANG>_COMPILER</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