OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
doc
/
cmake
/
html
/
manual
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
04/04/2023 07:10:48 PM
rwxr-xr-x
π
ccmake.1.html
44.19 KB
04/04/2023 07:05:08 PM
rw-r--r--
π
cmake-buildsystem.7.html
161.14 KB
04/04/2023 07:05:09 PM
rw-r--r--
π
cmake-commands.7.html
21.66 KB
04/04/2023 07:05:09 PM
rw-r--r--
π
cmake-compile-features.7.html
46.17 KB
04/04/2023 07:05:09 PM
rw-r--r--
π
cmake-configure-log.7.html
35.93 KB
04/04/2023 07:05:09 PM
rw-r--r--
π
cmake-developer.7.html
60.56 KB
04/04/2023 07:05:09 PM
rw-r--r--
π
cmake-env-variables.7.html
15.36 KB
04/04/2023 07:05:09 PM
rw-r--r--
π
cmake-file-api.7.html
174.79 KB
04/04/2023 07:05:10 PM
rw-r--r--
π
cmake-generator-expressions.7.html
229.68 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-generators.7.html
16.07 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-gui.1.html
27.62 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-language.7.html
67.9 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-modules.7.html
37.63 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-packages.7.html
84.94 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-policies.7.html
48.41 KB
04/04/2023 07:05:11 PM
rw-r--r--
π
cmake-presets.7.html
122.21 KB
04/04/2023 07:05:12 PM
rw-r--r--
π
cmake-properties.7.html
80.47 KB
04/04/2023 07:05:12 PM
rw-r--r--
π
cmake-qt.7.html
47.92 KB
04/04/2023 07:05:12 PM
rw-r--r--
π
cmake-server.7.html
5.39 KB
04/04/2023 07:05:12 PM
rw-r--r--
π
cmake-toolchains.7.html
92.74 KB
04/04/2023 07:05:12 PM
rw-r--r--
π
cmake-variables.7.html
105.71 KB
04/04/2023 07:05:12 PM
rw-r--r--
π
cmake.1.html
170.8 KB
04/04/2023 07:05:13 PM
rw-r--r--
π
cpack-generators.7.html
7.54 KB
04/04/2023 07:05:13 PM
rw-r--r--
π
cpack.1.html
39.49 KB
04/04/2023 07:05:13 PM
rw-r--r--
π
ctest.1.html
230.72 KB
04/04/2023 07:05:13 PM
rw-r--r--
Editing: cmake-file-api.7.html
Close
<!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-file-api(7) — CMake 3.26.3 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-generator-expressions(7)" href="cmake-generator-expressions.7.html" /> <link rel="prev" title="CCMAKE_COLORS" href="../envvar/CCMAKE_COLORS.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-generator-expressions.7.html" title="cmake-generator-expressions(7)" accesskey="N">next</a> |</li> <li class="right" > <a href="../envvar/CCMAKE_COLORS.html" title="CCMAKE_COLORS" 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.3 Documentation</a> » </li> <li class="nav-item nav-item-this"><a href="">cmake-file-api(7)</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <span class="target" id="manual:cmake-file-api(7)"></span><section id="cmake-file-api-7"> <h1><a class="toc-backref" href="#id1" role="doc-backlink">cmake-file-api(7)</a><a class="headerlink" href="#cmake-file-api-7" title="Permalink to this heading">ΒΆ</a></h1> <nav class="contents" id="contents"> <p class="topic-title">Contents</p> <ul class="simple"> <li><p><a class="reference internal" href="#cmake-file-api-7" id="id1">cmake-file-api(7)</a></p> <ul> <li><p><a class="reference internal" href="#introduction" id="id2">Introduction</a></p></li> <li><p><a class="reference internal" href="#api-v1" id="id3">API v1</a></p> <ul> <li><p><a class="reference internal" href="#v1-shared-stateless-query-files" id="id4">v1 Shared Stateless Query Files</a></p></li> <li><p><a class="reference internal" href="#v1-client-stateless-query-files" id="id5">v1 Client Stateless Query Files</a></p></li> <li><p><a class="reference internal" href="#v1-client-stateful-query-files" id="id6">v1 Client Stateful Query Files</a></p></li> <li><p><a class="reference internal" href="#v1-reply-index-file" id="id7">v1 Reply Index File</a></p> <ul> <li><p><a class="reference internal" href="#v1-reply-file-reference" id="id8">v1 Reply File Reference</a></p></li> </ul> </li> <li><p><a class="reference internal" href="#v1-reply-files" id="id9">v1 Reply Files</a></p></li> </ul> </li> <li><p><a class="reference internal" href="#object-kinds" id="id10">Object Kinds</a></p> <ul> <li><p><a class="reference internal" href="#object-kind-codemodel" id="id11">Object Kind "codemodel"</a></p> <ul> <li><p><a class="reference internal" href="#codemodel-version-2" id="id12">"codemodel" version 2</a></p></li> <li><p><a class="reference internal" href="#codemodel-version-2-directory-object" id="id13">"codemodel" version 2 "directory" object</a></p></li> <li><p><a class="reference internal" href="#codemodel-version-2-target-object" id="id14">"codemodel" version 2 "target" object</a></p></li> <li><p><a class="reference internal" href="#codemodel-version-2-backtrace-graph" id="id15">"codemodel" version 2 "backtrace graph"</a></p></li> </ul> </li> <li><p><a class="reference internal" href="#object-kind-configurelog" id="id16">Object Kind "configureLog"</a></p> <ul> <li><p><a class="reference internal" href="#configurelog-version-1" id="id17">"configureLog" version 1</a></p></li> </ul> </li> <li><p><a class="reference internal" href="#object-kind-cache" id="id18">Object Kind "cache"</a></p> <ul> <li><p><a class="reference internal" href="#cache-version-2" id="id19">"cache" version 2</a></p></li> </ul> </li> <li><p><a class="reference internal" href="#object-kind-cmakefiles" id="id20">Object Kind "cmakeFiles"</a></p> <ul> <li><p><a class="reference internal" href="#cmakefiles-version-1" id="id21">"cmakeFiles" version 1</a></p></li> </ul> </li> <li><p><a class="reference internal" href="#object-kind-toolchains" id="id22">Object Kind "toolchains"</a></p> <ul> <li><p><a class="reference internal" href="#toolchains-version-1" id="id23">"toolchains" version 1</a></p></li> </ul> </li> </ul> </li> </ul> </li> </ul> </nav> <section id="introduction"> <h2><a class="toc-backref" href="#id2" role="doc-backlink">Introduction</a><a class="headerlink" href="#introduction" title="Permalink to this heading">ΒΆ</a></h2> <p>CMake provides a file-based API that clients may use to get semantic information about the buildsystems CMake generates. Clients may use the API by writing query files to a specific location in a build tree to request zero or more <a class="reference internal" href="#object-kinds">Object Kinds</a>. When CMake generates the buildsystem in that build tree it will read the query files and write reply files for the client to read.</p> <p>The file-based API uses a <code class="docutils literal notranslate"><span class="pre"><build>/.cmake/api/</span></code> directory at the top of a build tree. The API is versioned to support changes to the layout of files within the API directory. API file layout versioning is orthogonal to the versioning of <a class="reference internal" href="#object-kinds">Object Kinds</a> used in replies. This version of CMake supports only one API version, <a class="reference internal" href="#api-v1">API v1</a>.</p> </section> <section id="api-v1"> <h2><a class="toc-backref" href="#id3" role="doc-backlink">API v1</a><a class="headerlink" href="#api-v1" title="Permalink to this heading">ΒΆ</a></h2> <p>API v1 is housed in the <code class="docutils literal notranslate"><span class="pre"><build>/.cmake/api/v1/</span></code> directory. It has the following subdirectories:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">query/</span></code></dt><dd><p>Holds query files written by clients. These may be <a class="reference internal" href="#v1-shared-stateless-query-files">v1 Shared Stateless Query Files</a>, <a class="reference internal" href="#v1-client-stateless-query-files">v1 Client Stateless Query Files</a>, or <a class="reference internal" href="#v1-client-stateful-query-files">v1 Client Stateful Query Files</a>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">reply/</span></code></dt><dd><p>Holds reply files written by CMake whenever it runs to generate a build system. These are indexed by a <a class="reference internal" href="#v1-reply-index-file">v1 Reply Index File</a> file that may reference additional <a class="reference internal" href="#v1-reply-files">v1 Reply Files</a>. CMake owns all reply files. Clients must never remove them.</p> <p>Clients may look for and read a reply index file at any time. Clients may optionally create the <code class="docutils literal notranslate"><span class="pre">reply/</span></code> directory at any time and monitor it for the appearance of a new reply index file.</p> </dd> </dl> <section id="v1-shared-stateless-query-files"> <h3><a class="toc-backref" href="#id4" role="doc-backlink">v1 Shared Stateless Query Files</a><a class="headerlink" href="#v1-shared-stateless-query-files" title="Permalink to this heading">ΒΆ</a></h3> <p>Shared stateless query files allow clients to share requests for major versions of the <a class="reference internal" href="#object-kinds">Object Kinds</a> and get all requested versions recognized by the CMake that runs.</p> <p>Clients may create shared requests by creating empty files in the <code class="docutils literal notranslate"><span class="pre">v1/query/</span></code> directory. The form is:</p> <div class="highlight-none notranslate"><div class="highlight"><pre><span></span><build>/.cmake/api/v1/query/<kind>-v<major> </pre></div> </div> <p>where <code class="docutils literal notranslate"><span class="pre"><kind></span></code> is one of the <a class="reference internal" href="#object-kinds">Object Kinds</a>, <code class="docutils literal notranslate"><span class="pre">-v</span></code> is literal, and <code class="docutils literal notranslate"><span class="pre"><major></span></code> is the major version number.</p> <p>Files of this form are stateless shared queries not owned by any specific client. Once created they should not be removed without external client coordination or human intervention.</p> </section> <section id="v1-client-stateless-query-files"> <h3><a class="toc-backref" href="#id5" role="doc-backlink">v1 Client Stateless Query Files</a><a class="headerlink" href="#v1-client-stateless-query-files" title="Permalink to this heading">ΒΆ</a></h3> <p>Client stateless query files allow clients to create owned requests for major versions of the <a class="reference internal" href="#object-kinds">Object Kinds</a> and get all requested versions recognized by the CMake that runs.</p> <p>Clients may create owned requests by creating empty files in client-specific query subdirectories. The form is:</p> <div class="highlight-none notranslate"><div class="highlight"><pre><span></span><build>/.cmake/api/v1/query/client-<client>/<kind>-v<major> </pre></div> </div> <p>where <code class="docutils literal notranslate"><span class="pre">client-</span></code> is literal, <code class="docutils literal notranslate"><span class="pre"><client></span></code> is a string uniquely identifying the client, <code class="docutils literal notranslate"><span class="pre"><kind></span></code> is one of the <a class="reference internal" href="#object-kinds">Object Kinds</a>, <code class="docutils literal notranslate"><span class="pre">-v</span></code> is literal, and <code class="docutils literal notranslate"><span class="pre"><major></span></code> is the major version number. Each client must choose a unique <code class="docutils literal notranslate"><span class="pre"><client></span></code> identifier via its own means.</p> <p>Files of this form are stateless queries owned by the client <code class="docutils literal notranslate"><span class="pre"><client></span></code>. The owning client may remove them at any time.</p> </section> <section id="v1-client-stateful-query-files"> <h3><a class="toc-backref" href="#id6" role="doc-backlink">v1 Client Stateful Query Files</a><a class="headerlink" href="#v1-client-stateful-query-files" title="Permalink to this heading">ΒΆ</a></h3> <p>Stateful query files allow clients to request a list of versions of each of the <a class="reference internal" href="#object-kinds">Object Kinds</a> and get only the most recent version recognized by the CMake that runs.</p> <p>Clients may create owned stateful queries by creating <code class="docutils literal notranslate"><span class="pre">query.json</span></code> files in client-specific query subdirectories. The form is:</p> <div class="highlight-none notranslate"><div class="highlight"><pre><span></span><build>/.cmake/api/v1/query/client-<client>/query.json </pre></div> </div> <p>where <code class="docutils literal notranslate"><span class="pre">client-</span></code> is literal, <code class="docutils literal notranslate"><span class="pre"><client></span></code> is a string uniquely identifying the client, and <code class="docutils literal notranslate"><span class="pre">query.json</span></code> is literal. Each client must choose a unique <code class="docutils literal notranslate"><span class="pre"><client></span></code> identifier via its own means.</p> <p><code class="docutils literal notranslate"><span class="pre">query.json</span></code> files are stateful queries owned by the client <code class="docutils literal notranslate"><span class="pre"><client></span></code>. The owning client may update or remove them at any time. When a given client installation is updated it may then update the stateful query it writes to build trees to request newer object versions. This can be used to avoid asking CMake to generate multiple object versions unnecessarily.</p> <p>A <code class="docutils literal notranslate"><span class="pre">query.json</span></code> file must contain a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"requests"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="p">}]</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"client"</span><span class="p">:</span><span class="w"> </span><span class="p">{}</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"..."</span><span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"client"</span><span class="p">:</span><span class="w"> </span><span class="p">{}</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">requests</span></code></dt><dd><p>A JSON array containing zero or more requests. Each request is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">kind</span></code></dt><dd><p>Specifies one of the <a class="reference internal" href="#object-kinds">Object Kinds</a> to be included in the reply.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">version</span></code></dt><dd><p>Indicates the version(s) of the object kind that the client understands. Versions have major and minor components following semantic version conventions. The value must be</p> <ul class="simple"> <li><p>a JSON integer specifying a (non-negative) major version number, or</p></li> <li><p>a JSON object containing <code class="docutils literal notranslate"><span class="pre">major</span></code> and (optionally) <code class="docutils literal notranslate"><span class="pre">minor</span></code> members specifying non-negative integer version components, or</p></li> <li><p>a JSON array whose elements are each one of the above.</p></li> </ul> </dd> <dt><code class="docutils literal notranslate"><span class="pre">client</span></code></dt><dd><p>Optional member reserved for use by the client. This value is preserved in the reply written for the client in the <a class="reference internal" href="#v1-reply-index-file">v1 Reply Index File</a> but is otherwise ignored. Clients may use this to pass custom information with a request through to its reply.</p> </dd> </dl> <p>For each requested object kind CMake will choose the <em>first</em> version that it recognizes for that kind among those listed in the request. The response will use the selected <em>major</em> version with the highest <em>minor</em> version known to the running CMake for that major version. Therefore clients should list all supported major versions in preferred order along with the minimal minor version required for each major version.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">client</span></code></dt><dd><p>Optional member reserved for use by the client. This value is preserved in the reply written for the client in the <a class="reference internal" href="#v1-reply-index-file">v1 Reply Index File</a> but is otherwise ignored. Clients may use this to pass custom information with a query through to its reply.</p> </dd> </dl> <p>Other <code class="docutils literal notranslate"><span class="pre">query.json</span></code> top-level members are reserved for future use. If present they are ignored for forward compatibility.</p> </section> <section id="v1-reply-index-file"> <h3><a class="toc-backref" href="#id7" role="doc-backlink">v1 Reply Index File</a><a class="headerlink" href="#v1-reply-index-file" title="Permalink to this heading">ΒΆ</a></h3> <p>CMake writes an <code class="docutils literal notranslate"><span class="pre">index-*.json</span></code> file to the <code class="docutils literal notranslate"><span class="pre">v1/reply/</span></code> directory whenever it runs to generate a build system. Clients must read the reply index file first and may read other <a class="reference internal" href="#v1-reply-files">v1 Reply Files</a> only by following references. The form of the reply index file name is:</p> <div class="highlight-none notranslate"><div class="highlight"><pre><span></span><build>/.cmake/api/v1/reply/index-<unspecified>.json </pre></div> </div> <p>where <code class="docutils literal notranslate"><span class="pre">index-</span></code> is literal and <code class="docutils literal notranslate"><span class="pre"><unspecified></span></code> is an unspecified name selected by CMake. Whenever a new index file is generated it is given a new name and any old one is deleted. During the short time between these steps there may be multiple index files present; the one with the largest name in lexicographic order is the current index file.</p> <p>The reply index file contains a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"cmake"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">14</span><span class="p">,</span><span class="w"> </span><span class="nt">"patch"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nt">"suffix"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"string"</span><span class="p">:</span><span class="w"> </span><span class="s2">"3.14.0"</span><span class="p">,</span><span class="w"> </span><span class="nt">"isDirty"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"paths"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"cmake"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/prefix/bin/cmake"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"ctest"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/prefix/bin/ctest"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"cpack"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/prefix/bin/cpack"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"root"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/prefix/share/cmake-3.14"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"generator"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"multiConfig"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Unix Makefiles"</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"objects"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"..."</span><span class="p">:</span><span class="w"> </span><span class="s2">"..."</span><span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"reply"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"<kind>-v<major>"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"<unknown>"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"error"</span><span class="p">:</span><span class="w"> </span><span class="s2">"unknown query file"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"..."</span><span class="p">:</span><span class="w"> </span><span class="p">{},</span><span class="w"></span> <span class="w"> </span><span class="nt">"client-<client>"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"<kind>-v<major>"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"<unknown>"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"error"</span><span class="p">:</span><span class="w"> </span><span class="s2">"unknown query file"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"..."</span><span class="p">:</span><span class="w"> </span><span class="p">{},</span><span class="w"></span> <span class="w"> </span><span class="nt">"query.json"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"requests"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="p">{},</span><span class="w"> </span><span class="p">{},</span><span class="w"> </span><span class="p">{}</span><span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"responses"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"error"</span><span class="p">:</span><span class="w"> </span><span class="s2">"unknown query file"</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"..."</span><span class="p">:</span><span class="w"> </span><span class="p">{}</span><span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"client"</span><span class="p">:</span><span class="w"> </span><span class="p">{}</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">cmake</span></code></dt><dd><p>A JSON object containing information about the instance of CMake that generated the reply. It contains members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">version</span></code></dt><dd><p>A JSON object specifying the version of CMake with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">major</span></code>, <code class="docutils literal notranslate"><span class="pre">minor</span></code>, <code class="docutils literal notranslate"><span class="pre">patch</span></code></dt><dd><p>Integer values specifying the major, minor, and patch version components.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">suffix</span></code></dt><dd><p>A string specifying the version suffix, if any, e.g. <code class="docutils literal notranslate"><span class="pre">g0abc3</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">string</span></code></dt><dd><p>A string specifying the full version in the format <code class="docutils literal notranslate"><span class="pre"><major>.<minor>.<patch>[-<suffix>]</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isDirty</span></code></dt><dd><p>A boolean indicating whether the version was built from a version controlled source tree with local modifications.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">paths</span></code></dt><dd><p>A JSON object specifying paths to things that come with CMake. It has members for <strong class="program">cmake</strong>, <strong class="program">ctest</strong>, and <strong class="program">cpack</strong> whose values are JSON strings specifying the absolute path to each tool, represented with forward slashes. It also has a <code class="docutils literal notranslate"><span class="pre">root</span></code> member for the absolute path to the directory containing CMake resources like the <code class="docutils literal notranslate"><span class="pre">Modules/</span></code> directory (see <span class="target" id="index-0-variable:CMAKE_ROOT"></span><a class="reference internal" href="../variable/CMAKE_ROOT.html#variable:CMAKE_ROOT" title="CMAKE_ROOT"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_ROOT</span></code></a>).</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">generator</span></code></dt><dd><p>A JSON object describing the CMake generator used for the build. It has members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">multiConfig</span></code></dt><dd><p>A boolean specifying whether the generator supports multiple output configurations.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the generator.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">platform</span></code></dt><dd><p>If the generator supports <span class="target" id="index-0-variable:CMAKE_GENERATOR_PLATFORM"></span><a class="reference internal" href="../variable/CMAKE_GENERATOR_PLATFORM.html#variable:CMAKE_GENERATOR_PLATFORM" title="CMAKE_GENERATOR_PLATFORM"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_GENERATOR_PLATFORM</span></code></a>, this is a string specifying the generator platform name.</p> </dd> </dl> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">objects</span></code></dt><dd><p>A JSON array listing all versions of all <a class="reference internal" href="#object-kinds">Object Kinds</a> generated as part of the reply. Each array entry is a <a class="reference internal" href="#v1-reply-file-reference">v1 Reply File Reference</a>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">reply</span></code></dt><dd><p>A JSON object mirroring the content of the <code class="docutils literal notranslate"><span class="pre">query/</span></code> directory that CMake loaded to produce the reply. The members are of the form</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre"><kind>-v<major></span></code></dt><dd><p>A member of this form appears for each of the <a class="reference internal" href="#v1-shared-stateless-query-files">v1 Shared Stateless Query Files</a> that CMake recognized as a request for object kind <code class="docutils literal notranslate"><span class="pre"><kind></span></code> with major version <code class="docutils literal notranslate"><span class="pre"><major></span></code>. The value is a <a class="reference internal" href="#v1-reply-file-reference">v1 Reply File Reference</a> to the corresponding reply file for that object kind and version.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre"><unknown></span></code></dt><dd><p>A member of this form appears for each of the <a class="reference internal" href="#v1-shared-stateless-query-files">v1 Shared Stateless Query Files</a> that CMake did not recognize. The value is a JSON object with a single <code class="docutils literal notranslate"><span class="pre">error</span></code> member containing a string with an error message indicating that the query file is unknown.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">client-<client></span></code></dt><dd><p>A member of this form appears for each client-owned directory holding <a class="reference internal" href="#v1-client-stateless-query-files">v1 Client Stateless Query Files</a>. The value is a JSON object mirroring the content of the <code class="docutils literal notranslate"><span class="pre">query/client-<client>/</span></code> directory. The members are of the form:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre"><kind>-v<major></span></code></dt><dd><p>A member of this form appears for each of the <a class="reference internal" href="#v1-client-stateless-query-files">v1 Client Stateless Query Files</a> that CMake recognized as a request for object kind <code class="docutils literal notranslate"><span class="pre"><kind></span></code> with major version <code class="docutils literal notranslate"><span class="pre"><major></span></code>. The value is a <a class="reference internal" href="#v1-reply-file-reference">v1 Reply File Reference</a> to the corresponding reply file for that object kind and version.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre"><unknown></span></code></dt><dd><p>A member of this form appears for each of the <a class="reference internal" href="#v1-client-stateless-query-files">v1 Client Stateless Query Files</a> that CMake did not recognize. The value is a JSON object with a single <code class="docutils literal notranslate"><span class="pre">error</span></code> member containing a string with an error message indicating that the query file is unknown.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">query.json</span></code></dt><dd><p>This member appears for clients using <a class="reference internal" href="#v1-client-stateful-query-files">v1 Client Stateful Query Files</a>. If the <code class="docutils literal notranslate"><span class="pre">query.json</span></code> file failed to read or parse as a JSON object, this member is a JSON object with a single <code class="docutils literal notranslate"><span class="pre">error</span></code> member containing a string with an error message. Otherwise, this member is a JSON object mirroring the content of the <code class="docutils literal notranslate"><span class="pre">query.json</span></code> file. The members are:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">client</span></code></dt><dd><p>A copy of the <code class="docutils literal notranslate"><span class="pre">query.json</span></code> file <code class="docutils literal notranslate"><span class="pre">client</span></code> member, if it exists.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">requests</span></code></dt><dd><p>A copy of the <code class="docutils literal notranslate"><span class="pre">query.json</span></code> file <code class="docutils literal notranslate"><span class="pre">requests</span></code> member, if it exists.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">responses</span></code></dt><dd><p>If the <code class="docutils literal notranslate"><span class="pre">query.json</span></code> file <code class="docutils literal notranslate"><span class="pre">requests</span></code> member is missing or invalid, this member is a JSON object with a single <code class="docutils literal notranslate"><span class="pre">error</span></code> member containing a string with an error message. Otherwise, this member contains a JSON array with a response for each entry of the <code class="docutils literal notranslate"><span class="pre">requests</span></code> array, in the same order. Each response is</p> <ul class="simple"> <li><p>a JSON object with a single <code class="docutils literal notranslate"><span class="pre">error</span></code> member containing a string with an error message, or</p></li> <li><p>a <a class="reference internal" href="#v1-reply-file-reference">v1 Reply File Reference</a> to the corresponding reply file for the requested object kind and selected version.</p></li> </ul> </dd> </dl> </dd> </dl> </dd> </dl> </dd> </dl> <p>After reading the reply index file, clients may read the other <a class="reference internal" href="#v1-reply-files">v1 Reply Files</a> it references.</p> <section id="v1-reply-file-reference"> <h4><a class="toc-backref" href="#id8" role="doc-backlink">v1 Reply File Reference</a><a class="headerlink" href="#v1-reply-file-reference" title="Permalink to this heading">ΒΆ</a></h4> <p>The reply index file represents each reference to another reply file using a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">kind</span></code></dt><dd><p>A string specifying one of the <a class="reference internal" href="#object-kinds">Object Kinds</a>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">version</span></code></dt><dd><p>A JSON object with members <code class="docutils literal notranslate"><span class="pre">major</span></code> and <code class="docutils literal notranslate"><span class="pre">minor</span></code> specifying integer version components of the object kind.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">jsonFile</span></code></dt><dd><p>A JSON string specifying a path relative to the reply index file to another JSON file containing the object.</p> </dd> </dl> </section> </section> <section id="v1-reply-files"> <h3><a class="toc-backref" href="#id9" role="doc-backlink">v1 Reply Files</a><a class="headerlink" href="#v1-reply-files" title="Permalink to this heading">ΒΆ</a></h3> <p>Reply files containing specific <a class="reference internal" href="#object-kinds">Object Kinds</a> are written by CMake. The names of these files are unspecified and must not be interpreted by clients. Clients must first read the <a class="reference internal" href="#v1-reply-index-file">v1 Reply Index File</a> and follow references to the names of the desired response objects.</p> <p>Reply files (including the index file) will never be replaced by files of the same name but different content. This allows a client to read the files concurrently with a running CMake that may generate a new reply. However, after generating a new reply CMake will attempt to remove reply files from previous runs that it did not just write. If a client attempts to read a reply file referenced by the index but finds the file missing, that means a concurrent CMake has generated a new reply. The client may simply start again by reading the new reply index file.</p> </section> </section> <section id="object-kinds"> <span id="file-api-object-kinds"></span><h2><a class="toc-backref" href="#id10" role="doc-backlink">Object Kinds</a><a class="headerlink" href="#object-kinds" title="Permalink to this heading">ΒΆ</a></h2> <p>The CMake file-based API reports semantic information about the build system using the following kinds of JSON objects. Each kind of object is versioned independently using semantic versioning with major and minor components. Every kind of object has the form:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<kind>"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"..."</span><span class="p">:</span><span class="w"> </span><span class="p">{}</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The <code class="docutils literal notranslate"><span class="pre">kind</span></code> member is a string specifying the object kind name. The <code class="docutils literal notranslate"><span class="pre">version</span></code> member is a JSON object with <code class="docutils literal notranslate"><span class="pre">major</span></code> and <code class="docutils literal notranslate"><span class="pre">minor</span></code> members specifying integer components of the object kind's version. Additional top-level members are specific to each object kind.</p> <section id="object-kind-codemodel"> <h3><a class="toc-backref" href="#id11" role="doc-backlink">Object Kind "codemodel"</a><a class="headerlink" href="#object-kind-codemodel" title="Permalink to this heading">ΒΆ</a></h3> <p>The <code class="docutils literal notranslate"><span class="pre">codemodel</span></code> object kind describes the build system structure as modeled by CMake.</p> <p>There is only one <code class="docutils literal notranslate"><span class="pre">codemodel</span></code> object major version, version 2. Version 1 does not exist to avoid confusion with that from <span class="target" id="index-0-manual:cmake-server(7)"></span><a class="reference internal" href="cmake-server.7.html#manual:cmake-server(7)" title="cmake-server(7)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">cmake-server(7)</span></code></a> mode.</p> <section id="codemodel-version-2"> <h4><a class="toc-backref" href="#id12" role="doc-backlink">"codemodel" version 2</a><a class="headerlink" href="#codemodel-version-2" title="Permalink to this heading">ΒΆ</a></h4> <p><code class="docutils literal notranslate"><span class="pre">codemodel</span></code> object version 2 is a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"codemodel"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"paths"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"source"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/top-level-source-dir"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"build"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/top-level-build-dir"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"configurations"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Debug"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"directories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"source"</span><span class="p">:</span><span class="w"> </span><span class="s2">"."</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"build"</span><span class="p">:</span><span class="w"> </span><span class="s2">"."</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"childIndexes"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"projectIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"targetIndexes"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"hasInstallRule"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"minimumCMakeVersion"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"string"</span><span class="p">:</span><span class="w"> </span><span class="s2">"3.14"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"source"</span><span class="p">:</span><span class="w"> </span><span class="s2">"sub"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"build"</span><span class="p">:</span><span class="w"> </span><span class="s2">"sub"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"parentIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"projectIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"targetIndexes"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"minimumCMakeVersion"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"string"</span><span class="p">:</span><span class="w"> </span><span class="s2">"3.14"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"projects"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyProject"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"directoryIndexes"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"targetIndexes"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"targets"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyExecutable"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"directoryIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"projectIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyLibrary"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"directoryIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"projectIndex"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"jsonFile"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<file>"</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members specific to <code class="docutils literal notranslate"><span class="pre">codemodel</span></code> objects are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">paths</span></code></dt><dd><p>A JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">source</span></code></dt><dd><p>A string specifying the absolute path to the top-level source directory, represented with forward slashes.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">build</span></code></dt><dd><p>A string specifying the absolute path to the top-level build directory, represented with forward slashes.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">configurations</span></code></dt><dd><p>A JSON array of entries corresponding to available build configurations. On single-configuration generators there is one entry for the value of the <span class="target" id="index-0-variable:CMAKE_BUILD_TYPE"></span><a class="reference internal" href="../variable/CMAKE_BUILD_TYPE.html#variable:CMAKE_BUILD_TYPE" title="CMAKE_BUILD_TYPE"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_BUILD_TYPE</span></code></a> variable. For multi-configuration generators there is an entry for each configuration listed in the <span class="target" id="index-0-variable:CMAKE_CONFIGURATION_TYPES"></span><a class="reference internal" href="../variable/CMAKE_CONFIGURATION_TYPES.html#variable:CMAKE_CONFIGURATION_TYPES" title="CMAKE_CONFIGURATION_TYPES"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_CONFIGURATION_TYPES</span></code></a> variable. Each entry is a JSON object containing members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the configuration, e.g. <code class="docutils literal notranslate"><span class="pre">Debug</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">directories</span></code></dt><dd><p>A JSON array of entries each corresponding to a build system directory whose source directory contains a <code class="docutils literal notranslate"><span class="pre">CMakeLists.txt</span></code> file. The first entry corresponds to the top-level directory. Each entry is a JSON object containing members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">source</span></code></dt><dd><p>A string specifying the path to the source directory, represented with forward slashes. If the directory is inside the top-level source directory then the path is specified relative to that directory (with <code class="docutils literal notranslate"><span class="pre">.</span></code> for the top-level source directory itself). Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">build</span></code></dt><dd><p>A string specifying the path to the build directory, represented with forward slashes. If the directory is inside the top-level build directory then the path is specified relative to that directory (with <code class="docutils literal notranslate"><span class="pre">.</span></code> for the top-level build directory itself). Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">parentIndex</span></code></dt><dd><p>Optional member that is present when the directory is not top-level. The value is an unsigned integer 0-based index of another entry in the main <code class="docutils literal notranslate"><span class="pre">directories</span></code> array that corresponds to the parent directory that added this directory as a subdirectory.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">childIndexes</span></code></dt><dd><p>Optional member that is present when the directory has subdirectories. The value is a JSON array of entries corresponding to child directories created by the <span class="target" id="index-0-command:add_subdirectory"></span><a class="reference internal" href="../command/add_subdirectory.html#command:add_subdirectory" title="add_subdirectory"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_subdirectory()</span></code></a> or <span class="target" id="index-0-command:subdirs"></span><a class="reference internal" href="../command/subdirs.html#command:subdirs" title="subdirs"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">subdirs()</span></code></a> command. Each entry is an unsigned integer 0-based index of another entry in the main <code class="docutils literal notranslate"><span class="pre">directories</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">projectIndex</span></code></dt><dd><p>An unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">projects</span></code> array indicating the build system project to which the this directory belongs.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targetIndexes</span></code></dt><dd><p>Optional member that is present when the directory itself has targets, excluding those belonging to subdirectories. The value is a JSON array of entries corresponding to the targets. Each entry is an unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">targets</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">minimumCMakeVersion</span></code></dt><dd><p>Optional member present when a minimum required version of CMake is known for the directory. This is the <code class="docutils literal notranslate"><span class="pre"><min></span></code> version given to the most local call to the <span class="target" id="index-0-command:cmake_minimum_required"></span><a class="reference internal" href="../command/cmake_minimum_required.html#command:cmake_minimum_required" title="cmake_minimum_required"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">cmake_minimum_required(VERSION)</span></code></a> command in the directory itself or one of its ancestors. The value is a JSON object with one member:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">string</span></code></dt><dd><p>A string specifying the minimum required version in the format:</p> <div class="highlight-none notranslate"><div class="highlight"><pre><span></span><major>.<minor>[.<patch>[.<tweak>]][<suffix>] </pre></div> </div> <p>Each component is an unsigned integer and the suffix may be an arbitrary string.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">hasInstallRule</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> when the directory or one of its subdirectories contains any <span class="target" id="index-0-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> rules, i.e. whether a <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">install</span></code> or equivalent rule is available.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">jsonFile</span></code></dt><dd><p>A JSON string specifying a path relative to the codemodel file to another JSON file containing a <a class="reference internal" href="#codemodel-version-2-directory-object">"codemodel" version 2 "directory" object</a>.</p> <p>This field was added in codemodel version 2.3.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">projects</span></code></dt><dd><p>A JSON array of entries corresponding to the top-level project and sub-projects defined in the build system. Each (sub-)project corresponds to a source directory whose <code class="docutils literal notranslate"><span class="pre">CMakeLists.txt</span></code> file calls the <span class="target" id="index-0-command:project"></span><a class="reference internal" href="../command/project.html#command:project" title="project"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">project()</span></code></a> command with a project name different from its parent directory. The first entry corresponds to the top-level project.</p> <p>Each entry is a JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name given to the <span class="target" id="index-1-command:project"></span><a class="reference internal" href="../command/project.html#command:project" title="project"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">project()</span></code></a> command.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">parentIndex</span></code></dt><dd><p>Optional member that is present when the project is not top-level. The value is an unsigned integer 0-based index of another entry in the main <code class="docutils literal notranslate"><span class="pre">projects</span></code> array that corresponds to the parent project that added this project as a sub-project.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">childIndexes</span></code></dt><dd><p>Optional member that is present when the project has sub-projects. The value is a JSON array of entries corresponding to the sub-projects. Each entry is an unsigned integer 0-based index of another entry in the main <code class="docutils literal notranslate"><span class="pre">projects</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">directoryIndexes</span></code></dt><dd><p>A JSON array of entries corresponding to build system directories that are part of the project. The first entry corresponds to the top-level directory of the project. Each entry is an unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">directories</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targetIndexes</span></code></dt><dd><p>Optional member that is present when the project itself has targets, excluding those belonging to sub-projects. The value is a JSON array of entries corresponding to the targets. Each entry is an unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">targets</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targets</span></code></dt><dd><p>A JSON array of entries corresponding to the build system targets. Such targets are created by calls to <span class="target" id="index-0-command:add_executable"></span><a class="reference internal" href="../command/add_executable.html#command:add_executable" title="add_executable"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_executable()</span></code></a>, <span class="target" id="index-0-command:add_library"></span><a class="reference internal" href="../command/add_library.html#command:add_library" title="add_library"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_library()</span></code></a>, and <span class="target" id="index-0-command:add_custom_target"></span><a class="reference internal" href="../command/add_custom_target.html#command:add_custom_target" title="add_custom_target"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_custom_target()</span></code></a>, excluding imported targets and interface libraries (which do not generate any build rules). Each entry is a JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the target name.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">id</span></code></dt><dd><p>A string uniquely identifying the target. This matches the <code class="docutils literal notranslate"><span class="pre">id</span></code> field in the file referenced by <code class="docutils literal notranslate"><span class="pre">jsonFile</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">directoryIndex</span></code></dt><dd><p>An unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">directories</span></code> array indicating the build system directory in which the target is defined.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">projectIndex</span></code></dt><dd><p>An unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">projects</span></code> array indicating the build system project in which the target is defined.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">jsonFile</span></code></dt><dd><p>A JSON string specifying a path relative to the codemodel file to another JSON file containing a <a class="reference internal" href="#codemodel-version-2-target-object">"codemodel" version 2 "target" object</a>.</p> </dd> </dl> </dd> </dl> </dd> </dl> </section> <section id="codemodel-version-2-directory-object"> <h4><a class="toc-backref" href="#id13" role="doc-backlink">"codemodel" version 2 "directory" object</a><a class="headerlink" href="#codemodel-version-2-directory-object" title="Permalink to this heading">ΒΆ</a></h4> <p>A codemodel "directory" object is referenced by a <a class="reference internal" href="#codemodel-version-2">"codemodel" version 2</a> object's <code class="docutils literal notranslate"><span class="pre">directories</span></code> array. Each "directory" object is a JSON object with members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">paths</span></code></dt><dd><p>A JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">source</span></code></dt><dd><p>A string specifying the path to the source directory, represented with forward slashes. If the directory is inside the top-level source directory then the path is specified relative to that directory (with <code class="docutils literal notranslate"><span class="pre">.</span></code> for the top-level source directory itself). Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">build</span></code></dt><dd><p>A string specifying the path to the build directory, represented with forward slashes. If the directory is inside the top-level build directory then the path is specified relative to that directory (with <code class="docutils literal notranslate"><span class="pre">.</span></code> for the top-level build directory itself). Otherwise the path is absolute.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">installers</span></code></dt><dd><p>A JSON array of entries corresponding to <span class="target" id="index-1-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> rules. Each entry is a JSON object containing members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">component</span></code></dt><dd><p>A string specifying the component selected by the corresponding <span class="target" id="index-2-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> command invocation.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">destination</span></code></dt><dd><p>Optional member that is present for specific <code class="docutils literal notranslate"><span class="pre">type</span></code> values below. The value is a string specifying the install destination path. The path may be absolute or relative to the install prefix.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">paths</span></code></dt><dd><p>Optional member that is present for specific <code class="docutils literal notranslate"><span class="pre">type</span></code> values below. The value is a JSON array of entries corresponding to the paths (files or directories) to be installed. Each entry is one of:</p> <ul> <li><p>A string specifying the path from which a file or directory is to be installed. The portion of the path not preceded by a <code class="docutils literal notranslate"><span class="pre">/</span></code> also specifies the path (name) to which the file or directory is to be installed under the destination.</p></li> <li><p>A JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">from</span></code></dt><dd><p>A string specifying the path from which a file or directory is to be installed.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">to</span></code></dt><dd><p>A string specifying the path to which the file or directory is to be installed under the destination.</p> </dd> </dl> </li> </ul> <p>In both cases the paths are represented with forward slashes. If the "from" path is inside the top-level directory documented by the corresponding <code class="docutils literal notranslate"><span class="pre">type</span></code> value, then the path is specified relative to that directory. Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">type</span></code></dt><dd><p>A string specifying the type of installation rule. The value is one of the following, with some variants providing additional members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">file</span></code></dt><dd><p>An <span class="target" id="index-3-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(FILES)</span></code></a> or <span class="target" id="index-4-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(PROGRAMS)</span></code></a> call. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> and <code class="docutils literal notranslate"><span class="pre">paths</span></code> members are populated, with paths under the top-level <em>source</em> directory expressed relative to it. The <code class="docutils literal notranslate"><span class="pre">isOptional</span></code> member may exist. This type has no additional members.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">directory</span></code></dt><dd><p>An <span class="target" id="index-5-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(DIRECTORY)</span></code></a> call. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> and <code class="docutils literal notranslate"><span class="pre">paths</span></code> members are populated, with paths under the top-level <em>source</em> directory expressed relative to it. The <code class="docutils literal notranslate"><span class="pre">isOptional</span></code> member may exist. This type has no additional members.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">target</span></code></dt><dd><p>An <span class="target" id="index-6-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(TARGETS)</span></code></a> call. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> and <code class="docutils literal notranslate"><span class="pre">paths</span></code> members are populated, with paths under the top-level <em>build</em> directory expressed relative to it. The <code class="docutils literal notranslate"><span class="pre">isOptional</span></code> member may exist. This type has additional members <code class="docutils literal notranslate"><span class="pre">targetId</span></code>, <code class="docutils literal notranslate"><span class="pre">targetIndex</span></code>, <code class="docutils literal notranslate"><span class="pre">targetIsImportLibrary</span></code>, and <code class="docutils literal notranslate"><span class="pre">targetInstallNamelink</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">export</span></code></dt><dd><p>An <span class="target" id="index-7-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(EXPORT)</span></code></a> call. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> and <code class="docutils literal notranslate"><span class="pre">paths</span></code> members are populated, with paths under the top-level <em>build</em> directory expressed relative to it. The <code class="docutils literal notranslate"><span class="pre">paths</span></code> entries refer to files generated automatically by CMake for installation, and their actual values are considered private implementation details. This type has additional members <code class="docutils literal notranslate"><span class="pre">exportName</span></code> and <code class="docutils literal notranslate"><span class="pre">exportTargets</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">script</span></code></dt><dd><p>An <span class="target" id="index-8-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(SCRIPT)</span></code></a> call. This type has additional member <code class="docutils literal notranslate"><span class="pre">scriptFile</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">code</span></code></dt><dd><p>An <span class="target" id="index-9-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(CODE)</span></code></a> call. This type has no additional members.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">importedRuntimeArtifacts</span></code></dt><dd><p>An <span class="target" id="index-10-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(IMPORTED_RUNTIME_ARTIFACTS)</span></code></a> call. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> member is populated. The <code class="docutils literal notranslate"><span class="pre">isOptional</span></code> member may exist. This type has no additional members.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">runtimeDependencySet</span></code></dt><dd><p>An <span class="target" id="index-11-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(RUNTIME_DEPENDENCY_SET)</span></code></a> call or an <span class="target" id="index-12-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(TARGETS)</span></code></a> call with <code class="docutils literal notranslate"><span class="pre">RUNTIME_DEPENDENCIES</span></code>. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> member is populated. This type has additional members <code class="docutils literal notranslate"><span class="pre">runtimeDependencySetName</span></code> and <code class="docutils literal notranslate"><span class="pre">runtimeDependencySetType</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSet</span></code></dt><dd><p>An <span class="target" id="index-13-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(TARGETS)</span></code></a> call with <code class="docutils literal notranslate"><span class="pre">FILE_SET</span></code>. The <code class="docutils literal notranslate"><span class="pre">destination</span></code> and <code class="docutils literal notranslate"><span class="pre">paths</span></code> members are populated. The <code class="docutils literal notranslate"><span class="pre">isOptional</span></code> member may exist. This type has additional members <code class="docutils literal notranslate"><span class="pre">fileSetName</span></code>, <code class="docutils literal notranslate"><span class="pre">fileSetType</span></code>, <code class="docutils literal notranslate"><span class="pre">fileSetDirectories</span></code>, and <code class="docutils literal notranslate"><span class="pre">fileSetTarget</span></code>.</p> <p>This type was added in codemodel version 2.4.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isExcludeFromAll</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> when <span class="target" id="index-14-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> is called with the <code class="docutils literal notranslate"><span class="pre">EXCLUDE_FROM_ALL</span></code> option.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isForAllComponents</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> when <span class="target" id="index-15-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(SCRIPT|CODE)</span></code></a> is called with the <code class="docutils literal notranslate"><span class="pre">ALL_COMPONENTS</span></code> option.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isOptional</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> when <span class="target" id="index-16-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> is called with the <code class="docutils literal notranslate"><span class="pre">OPTIONAL</span></code> option. This is allowed when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">file</span></code>, <code class="docutils literal notranslate"><span class="pre">directory</span></code>, or <code class="docutils literal notranslate"><span class="pre">target</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targetId</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">target</span></code>. The value is a string uniquely identifying the target to be installed. This matches the <code class="docutils literal notranslate"><span class="pre">id</span></code> member of the target in the main "codemodel" object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targetIndex</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">target</span></code>. The value is an unsigned integer 0-based index into the main "codemodel" object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array for the target to be installed.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targetIsImportLibrary</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">target</span></code> and the installer is for a Windows DLL import library file or for an AIX linker import file. If present, it has boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">targetInstallNamelink</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">target</span></code> and the installer corresponds to a target that may use symbolic links to implement the <span class="target" id="index-0-prop_tgt:VERSION"></span><a class="reference internal" href="../prop_tgt/VERSION.html#prop_tgt:VERSION" title="VERSION"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">VERSION</span></code></a> and <span class="target" id="index-0-prop_tgt:SOVERSION"></span><a class="reference internal" href="../prop_tgt/SOVERSION.html#prop_tgt:SOVERSION" title="SOVERSION"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">SOVERSION</span></code></a> target properties. The value is a string indicating how the installer is supposed to handle the symlinks: <code class="docutils literal notranslate"><span class="pre">skip</span></code> means the installer should skip the symlinks and install only the real file, and <code class="docutils literal notranslate"><span class="pre">only</span></code> means the installer should install only the symlinks and not the real file. In all cases the <code class="docutils literal notranslate"><span class="pre">paths</span></code> member lists what it actually installs.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">exportName</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">export</span></code>. The value is a string specifying the name of the export.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">exportTargets</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">export</span></code>. The value is a JSON array of entries corresponding to the targets included in the export. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">id</span></code></dt><dd><p>A string uniquely identifying the target. This matches the <code class="docutils literal notranslate"><span class="pre">id</span></code> member of the target in the main "codemodel" object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">index</span></code></dt><dd><p>An unsigned integer 0-based index into the main "codemodel" object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array for the target.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">runtimeDependencySetName</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">runtimeDependencySet</span></code> and the installer was created by an <span class="target" id="index-17-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install(RUNTIME_DEPENDENCY_SET)</span></code></a> call. The value is a string specifying the name of the runtime dependency set that was installed.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">runtimeDependencySetType</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">runtimeDependencySet</span></code>. The value is a string with one of the following values:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">library</span></code></dt><dd><p>Indicates that this installer installs dependencies that are not macOS frameworks.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">framework</span></code></dt><dd><p>Indicates that this installer installs dependencies that are macOS frameworks.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSetName</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">fileSet</span></code>. The value is a string with the name of the file set.</p> <p>This field was added in codemodel version 2.4.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSetType</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">fileSet</span></code>. The value is a string with the type of the file set.</p> <p>This field was added in codemodel version 2.4.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSetDirectories</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">fileSet</span></code>. The value is a list of strings with the file set's base directories (determined by genex-evaluation of <span class="target" id="index-0-prop_tgt:HEADER_DIRS"></span><a class="reference internal" href="../prop_tgt/HEADER_DIRS.html#prop_tgt:HEADER_DIRS" title="HEADER_DIRS"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">HEADER_DIRS</span></code></a> or <span class="target" id="index-0-prop_tgt:HEADER_DIRS_<NAME>"></span><a class="reference internal" href="../prop_tgt/HEADER_DIRS_NAME.html#prop_tgt:HEADER_DIRS_<NAME>" title="HEADER_DIRS_<NAME>"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">HEADER_DIRS_<NAME></span></code></a>).</p> <p>This field was added in codemodel version 2.4.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSetTarget</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">fileSet</span></code>. The value is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">id</span></code></dt><dd><p>A string uniquely identifying the target. This matches the <code class="docutils literal notranslate"><span class="pre">id</span></code> member of the target in the main "codemodel" object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">index</span></code></dt><dd><p>An unsigned integer 0-based index into the main "codemodel" object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array for the target.</p> </dd> </dl> <p>This field was added in codemodel version 2.4.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">scriptFile</span></code></dt><dd><p>Optional member that is present when <code class="docutils literal notranslate"><span class="pre">type</span></code> is <code class="docutils literal notranslate"><span class="pre">script</span></code>. The value is a string specifying the path to the script file on disk, represented with forward slashes. If the file is inside the top-level source directory then the path is specified relative to that directory. Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-18-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> or other command invocation that added this installer is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code></dt><dd><p>A <a class="reference internal" href="#codemodel-version-2-backtrace-graph">"codemodel" version 2 "backtrace graph"</a> whose nodes are referenced from <code class="docutils literal notranslate"><span class="pre">backtrace</span></code> members elsewhere in this "directory" object.</p> </dd> </dl> </section> <section id="codemodel-version-2-target-object"> <h4><a class="toc-backref" href="#id14" role="doc-backlink">"codemodel" version 2 "target" object</a><a class="headerlink" href="#codemodel-version-2-target-object" title="Permalink to this heading">ΒΆ</a></h4> <p>A codemodel "target" object is referenced by a <a class="reference internal" href="#codemodel-version-2">"codemodel" version 2</a> object's <code class="docutils literal notranslate"><span class="pre">targets</span></code> array. Each "target" object is a JSON object with members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the logical name of the target.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">id</span></code></dt><dd><p>A string uniquely identifying the target. The format is unspecified and should not be interpreted by clients.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">type</span></code></dt><dd><p>A string specifying the type of the target. The value is one of <code class="docutils literal notranslate"><span class="pre">EXECUTABLE</span></code>, <code class="docutils literal notranslate"><span class="pre">STATIC_LIBRARY</span></code>, <code class="docutils literal notranslate"><span class="pre">SHARED_LIBRARY</span></code>, <code class="docutils literal notranslate"><span class="pre">MODULE_LIBRARY</span></code>, <code class="docutils literal notranslate"><span class="pre">OBJECT_LIBRARY</span></code>, <code class="docutils literal notranslate"><span class="pre">INTERFACE_LIBRARY</span></code>, or <code class="docutils literal notranslate"><span class="pre">UTILITY</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the command in the source code that created the target is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">folder</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-prop_tgt:FOLDER"></span><a class="reference internal" href="../prop_tgt/FOLDER.html#prop_tgt:FOLDER" title="FOLDER"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">FOLDER</span></code></a> target property is set. The value is a JSON object with one member:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the target folder.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">paths</span></code></dt><dd><p>A JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">source</span></code></dt><dd><p>A string specifying the path to the target's source directory, represented with forward slashes. If the directory is inside the top-level source directory then the path is specified relative to that directory (with <code class="docutils literal notranslate"><span class="pre">.</span></code> for the top-level source directory itself). Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">build</span></code></dt><dd><p>A string specifying the path to the target's build directory, represented with forward slashes. If the directory is inside the top-level build directory then the path is specified relative to that directory (with <code class="docutils literal notranslate"><span class="pre">.</span></code> for the top-level build directory itself). Otherwise the path is absolute.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">nameOnDisk</span></code></dt><dd><p>Optional member that is present for executable and library targets that are linked or archived into a single primary artifact. The value is a string specifying the file name of that artifact on disk.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">artifacts</span></code></dt><dd><p>Optional member that is present for executable and library targets that produce artifacts on disk meant for consumption by dependents. The value is a JSON array of entries corresponding to the artifacts. Each entry is a JSON object containing one member:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the path to the file on disk, represented with forward slashes. If the file is inside the top-level build directory then the path is specified relative to that directory. Otherwise the path is absolute.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isGeneratorProvided</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> if the target is provided by CMake's build system generator rather than by a command in the source code.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">install</span></code></dt><dd><p>Optional member that is present when the target has an <span class="target" id="index-19-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> rule. The value is a JSON object with members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">prefix</span></code></dt><dd><p>A JSON object specifying the installation prefix. It has one member:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the value of <span class="target" id="index-0-variable:CMAKE_INSTALL_PREFIX"></span><a class="reference internal" href="../variable/CMAKE_INSTALL_PREFIX.html#variable:CMAKE_INSTALL_PREFIX" title="CMAKE_INSTALL_PREFIX"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_INSTALL_PREFIX</span></code></a>.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">destinations</span></code></dt><dd><p>A JSON array of entries specifying an install destination path. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the install destination path. The path may be absolute or relative to the install prefix.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-20-command:install"></span><a class="reference internal" href="../command/install.html#command:install" title="install"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">install()</span></code></a> command invocation that specified this destination is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">link</span></code></dt><dd><p>Optional member that is present for executables and shared library targets that link into a runtime binary. The value is a JSON object with members describing the link step:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">language</span></code></dt><dd><p>A string specifying the language (e.g. <code class="docutils literal notranslate"><span class="pre">C</span></code>, <code class="docutils literal notranslate"><span class="pre">CXX</span></code>, <code class="docutils literal notranslate"><span class="pre">Fortran</span></code>) of the toolchain is used to invoke the linker.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">commandFragments</span></code></dt><dd><p>Optional member that is present when fragments of the link command line invocation are available. The value is a JSON array of entries specifying ordered fragments. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">fragment</span></code></dt><dd><p>A string specifying a fragment of the link command line invocation. The value is encoded in the build system's native shell format.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">role</span></code></dt><dd><p>A string specifying the role of the fragment's content:</p> <ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">flags</span></code>: link flags.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">libraries</span></code>: link library file paths or flags.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">libraryPath</span></code>: library search path flags.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">frameworkPath</span></code>: macOS framework search path flags.</p></li> </ul> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">lto</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> when link-time optimization (a.k.a. interprocedural optimization or link-time code generation) is enabled.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sysroot</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_SYSROOT_LINK"></span><a class="reference internal" href="../variable/CMAKE_SYSROOT_LINK.html#variable:CMAKE_SYSROOT_LINK" title="CMAKE_SYSROOT_LINK"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_SYSROOT_LINK</span></code></a> or <span class="target" id="index-0-variable:CMAKE_SYSROOT"></span><a class="reference internal" href="../variable/CMAKE_SYSROOT.html#variable:CMAKE_SYSROOT" title="CMAKE_SYSROOT"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_SYSROOT</span></code></a> variable is defined. The value is a JSON object with one member:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the absolute path to the sysroot, represented with forward slashes.</p> </dd> </dl> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">archive</span></code></dt><dd><p>Optional member that is present for static library targets. The value is a JSON object with members describing the archive step:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">commandFragments</span></code></dt><dd><p>Optional member that is present when fragments of the archiver command line invocation are available. The value is a JSON array of entries specifying the fragments. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">fragment</span></code></dt><dd><p>A string specifying a fragment of the archiver command line invocation. The value is encoded in the build system's native shell format.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">role</span></code></dt><dd><p>A string specifying the role of the fragment's content:</p> <ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">flags</span></code>: archiver flags.</p></li> </ul> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">lto</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> when link-time optimization (a.k.a. interprocedural optimization or link-time code generation) is enabled.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">dependencies</span></code></dt><dd><p>Optional member that is present when the target depends on other targets. The value is a JSON array of entries corresponding to the dependencies. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">id</span></code></dt><dd><p>A string uniquely identifying the target on which this target depends. This matches the main <code class="docutils literal notranslate"><span class="pre">id</span></code> member of the other target.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-0-command:add_dependencies"></span><a class="reference internal" href="../command/add_dependencies.html#command:add_dependencies" title="add_dependencies"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_dependencies()</span></code></a>, <span class="target" id="index-0-command:target_link_libraries"></span><a class="reference internal" href="../command/target_link_libraries.html#command:target_link_libraries" title="target_link_libraries"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_link_libraries()</span></code></a>, or other command invocation that created this dependency is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSets</span></code></dt><dd><p>A JSON array of entries corresponding to the target's file sets. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the file set.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">type</span></code></dt><dd><p>A string specifying the type of the file set. See <span class="target" id="index-0-command:target_sources"></span><a class="reference internal" href="../command/target_sources.html#command:target_sources" title="target_sources"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_sources()</span></code></a> supported file set types.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">visibility</span></code></dt><dd><p>A string specifying the visibility of the file set; one of <code class="docutils literal notranslate"><span class="pre">PUBLIC</span></code>, <code class="docutils literal notranslate"><span class="pre">PRIVATE</span></code>, or <code class="docutils literal notranslate"><span class="pre">INTERFACE</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">baseDirectories</span></code></dt><dd><p>A JSON array of strings specifying the base directories containing sources in the file set.</p> </dd> </dl> <p>This field was added in codemodel version 2.5.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sources</span></code></dt><dd><p>A JSON array of entries corresponding to the target's source files. Each entry is a JSON object with members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the path to the source file on disk, represented with forward slashes. If the file is inside the top-level source directory then the path is specified relative to that directory. Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">compileGroupIndex</span></code></dt><dd><p>Optional member that is present when the source is compiled. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">compileGroups</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sourceGroupIndex</span></code></dt><dd><p>Optional member that is present when the source is part of a source group either via the <span class="target" id="index-0-command:source_group"></span><a class="reference internal" href="../command/source_group.html#command:source_group" title="source_group"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">source_group()</span></code></a> command or by default. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">sourceGroups</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isGenerated</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> if the source is <span class="target" id="index-0-prop_sf:GENERATED"></span><a class="reference internal" href="../prop_sf/GENERATED.html#prop_sf:GENERATED" title="GENERATED"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">GENERATED</span></code></a>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">fileSetIndex</span></code></dt><dd><p>Optional member that is present when the source is part of a file set. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">fileSets</span></code> array.</p> <p>This field was added in codemodel version 2.5.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-1-command:target_sources"></span><a class="reference internal" href="../command/target_sources.html#command:target_sources" title="target_sources"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_sources()</span></code></a>, <span class="target" id="index-1-command:add_executable"></span><a class="reference internal" href="../command/add_executable.html#command:add_executable" title="add_executable"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_executable()</span></code></a>, <span class="target" id="index-1-command:add_library"></span><a class="reference internal" href="../command/add_library.html#command:add_library" title="add_library"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_library()</span></code></a>, <span class="target" id="index-1-command:add_custom_target"></span><a class="reference internal" href="../command/add_custom_target.html#command:add_custom_target" title="add_custom_target"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_custom_target()</span></code></a>, or other command invocation that added this source to the target is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sourceGroups</span></code></dt><dd><p>Optional member that is present when sources are grouped together by the <span class="target" id="index-1-command:source_group"></span><a class="reference internal" href="../command/source_group.html#command:source_group" title="source_group"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">source_group()</span></code></a> command or by default. The value is a JSON array of entries corresponding to the groups. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the source group.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sourceIndexes</span></code></dt><dd><p>A JSON array listing the sources belonging to the group. Each entry is an unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">sources</span></code> array for the target.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">compileGroups</span></code></dt><dd><p>Optional member that is present when the target has sources that compile. The value is a JSON array of entries corresponding to groups of sources that all compile with the same settings. Each entry is a JSON object with members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">sourceIndexes</span></code></dt><dd><p>A JSON array listing the sources belonging to the group. Each entry is an unsigned integer 0-based index into the main <code class="docutils literal notranslate"><span class="pre">sources</span></code> array for the target.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">language</span></code></dt><dd><p>A string specifying the language (e.g. <code class="docutils literal notranslate"><span class="pre">C</span></code>, <code class="docutils literal notranslate"><span class="pre">CXX</span></code>, <code class="docutils literal notranslate"><span class="pre">Fortran</span></code>) of the toolchain is used to compile the source file.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">languageStandard</span></code></dt><dd><p>Optional member that is present when the language standard is set explicitly (e.g. via <span class="target" id="index-0-prop_tgt:CXX_STANDARD"></span><a class="reference internal" href="../prop_tgt/CXX_STANDARD.html#prop_tgt:CXX_STANDARD" title="CXX_STANDARD"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">CXX_STANDARD</span></code></a>) or implicitly by compile features. Each entry is a JSON object with two members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">backtraces</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <code class="docutils literal notranslate"><span class="pre"><LANG>_STANDARD</span></code> setting is available. If the language standard was set implicitly by compile features those are used as the backtrace(s). It's possible for multiple compile features to require the same language standard so there could be multiple backtraces. The value is a JSON array with each entry being an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">standard</span></code></dt><dd><p>String representing the language standard.</p> </dd> </dl> <p>This field was added in codemodel version 2.2.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">compileCommandFragments</span></code></dt><dd><p>Optional member that is present when fragments of the compiler command line invocation are available. The value is a JSON array of entries specifying ordered fragments. Each entry is a JSON object with one member:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">fragment</span></code></dt><dd><p>A string specifying a fragment of the compile command line invocation. The value is encoded in the build system's native shell format.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">includes</span></code></dt><dd><p>Optional member that is present when there are include directories. The value is a JSON array with an entry for each directory. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the path to the include directory, represented with forward slashes.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isSystem</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> if the include directory is marked as a system include directory.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-0-command:target_include_directories"></span><a class="reference internal" href="../command/target_include_directories.html#command:target_include_directories" title="target_include_directories"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_include_directories()</span></code></a> or other command invocation that added this include directory is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">precompileHeaders</span></code></dt><dd><p>Optional member that is present when <span class="target" id="index-0-command:target_precompile_headers"></span><a class="reference internal" href="../command/target_precompile_headers.html#command:target_precompile_headers" title="target_precompile_headers"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_precompile_headers()</span></code></a> or other command invocations set <span class="target" id="index-0-prop_tgt:PRECOMPILE_HEADERS"></span><a class="reference internal" href="../prop_tgt/PRECOMPILE_HEADERS.html#prop_tgt:PRECOMPILE_HEADERS" title="PRECOMPILE_HEADERS"><code class="xref cmake cmake-prop_tgt docutils literal notranslate"><span class="pre">PRECOMPILE_HEADERS</span></code></a> on the target. The value is a JSON array with an entry for each header. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">header</span></code></dt><dd><p>Full path to the precompile header file.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-1-command:target_precompile_headers"></span><a class="reference internal" href="../command/target_precompile_headers.html#command:target_precompile_headers" title="target_precompile_headers"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_precompile_headers()</span></code></a> or other command invocation that added this precompiled header is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> <p>This field was added in codemodel version 2.1.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">defines</span></code></dt><dd><p>Optional member that is present when there are preprocessor definitions. The value is a JSON array with an entry for each definition. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">define</span></code></dt><dd><p>A string specifying the preprocessor definition in the format <code class="docutils literal notranslate"><span class="pre"><name>[=<value>]</span></code>, e.g. <code class="docutils literal notranslate"><span class="pre">DEF</span></code> or <code class="docutils literal notranslate"><span class="pre">DEF=1</span></code>.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtrace</span></code></dt><dd><p>Optional member that is present when a CMake language backtrace to the <span class="target" id="index-0-command:target_compile_definitions"></span><a class="reference internal" href="../command/target_compile_definitions.html#command:target_compile_definitions" title="target_compile_definitions"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">target_compile_definitions()</span></code></a> or other command invocation that added this preprocessor definition is available. The value is an unsigned integer 0-based index into the <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member's <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sysroot</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_SYSROOT_COMPILE"></span><a class="reference internal" href="../variable/CMAKE_SYSROOT_COMPILE.html#variable:CMAKE_SYSROOT_COMPILE" title="CMAKE_SYSROOT_COMPILE"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_SYSROOT_COMPILE</span></code></a> or <span class="target" id="index-1-variable:CMAKE_SYSROOT"></span><a class="reference internal" href="../variable/CMAKE_SYSROOT.html#variable:CMAKE_SYSROOT" title="CMAKE_SYSROOT"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_SYSROOT</span></code></a> variable is defined. The value is a JSON object with one member:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the absolute path to the sysroot, represented with forward slashes.</p> </dd> </dl> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code></dt><dd><p>A <a class="reference internal" href="#codemodel-version-2-backtrace-graph">"codemodel" version 2 "backtrace graph"</a> whose nodes are referenced from <code class="docutils literal notranslate"><span class="pre">backtrace</span></code> members elsewhere in this "target" object.</p> </dd> </dl> </section> <section id="codemodel-version-2-backtrace-graph"> <h4><a class="toc-backref" href="#id15" role="doc-backlink">"codemodel" version 2 "backtrace graph"</a><a class="headerlink" href="#codemodel-version-2-backtrace-graph" title="Permalink to this heading">ΒΆ</a></h4> <p>The <code class="docutils literal notranslate"><span class="pre">backtraceGraph</span></code> member of a <a class="reference internal" href="#codemodel-version-2-directory-object">"codemodel" version 2 "directory" object</a>, or <a class="reference internal" href="#codemodel-version-2-target-object">"codemodel" version 2 "target" object</a> is a JSON object describing a graph of backtraces. Its nodes are referenced from <code class="docutils literal notranslate"><span class="pre">backtrace</span></code> members elsewhere in the containing object. The backtrace graph object members are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">nodes</span></code></dt><dd><p>A JSON array listing nodes in the backtrace graph. Each entry is a JSON object with members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">file</span></code></dt><dd><p>An unsigned integer 0-based index into the backtrace <code class="docutils literal notranslate"><span class="pre">files</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">line</span></code></dt><dd><p>An optional member present when the node represents a line within the file. The value is an unsigned integer 1-based line number.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">command</span></code></dt><dd><p>An optional member present when the node represents a command invocation within the file. The value is an unsigned integer 0-based index into the backtrace <code class="docutils literal notranslate"><span class="pre">commands</span></code> array.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">parent</span></code></dt><dd><p>An optional member present when the node is not the bottom of the call stack. The value is an unsigned integer 0-based index of another entry in the backtrace <code class="docutils literal notranslate"><span class="pre">nodes</span></code> array.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">commands</span></code></dt><dd><p>A JSON array listing command names referenced by backtrace nodes. Each entry is a string specifying a command name.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">files</span></code></dt><dd><p>A JSON array listing CMake language files referenced by backtrace nodes. Each entry is a string specifying the path to a file, represented with forward slashes. If the file is inside the top-level source directory then the path is specified relative to that directory. Otherwise the path is absolute.</p> </dd> </dl> </section> </section> <section id="object-kind-configurelog"> <span id="file-api-configurelog"></span><h3><a class="toc-backref" href="#id16" role="doc-backlink">Object Kind "configureLog"</a><a class="headerlink" href="#object-kind-configurelog" title="Permalink to this heading">ΒΆ</a></h3> <p>The <code class="docutils literal notranslate"><span class="pre">configureLog</span></code> object kind describes the location and contents of a <span class="target" id="index-0-manual:cmake-configure-log(7)"></span><a class="reference internal" href="cmake-configure-log.7.html#manual:cmake-configure-log(7)" title="cmake-configure-log(7)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">cmake-configure-log(7)</span></code></a> file.</p> <p>There is only one <code class="docutils literal notranslate"><span class="pre">configureLog</span></code> object major version, version 1.</p> <section id="configurelog-version-1"> <h4><a class="toc-backref" href="#id17" role="doc-backlink">"configureLog" version 1</a><a class="headerlink" href="#configurelog-version-1" title="Permalink to this heading">ΒΆ</a></h4> <p><code class="docutils literal notranslate"><span class="pre">configureLog</span></code> object version 1 is a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"configureLog"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/top-level-build-dir/CMakeFiles/CMakeConfigureLog.yaml"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"eventKindNames"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="s2">"try_compile-v1"</span><span class="p">,</span><span class="w"> </span><span class="s2">"try_run-v1"</span><span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members specific to <code class="docutils literal notranslate"><span class="pre">configureLog</span></code> objects are:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the path to the configure log file. Clients must read the log file from this path, which may be different than the path documented by <span class="target" id="index-1-manual:cmake-configure-log(7)"></span><a class="reference internal" href="cmake-configure-log.7.html#manual:cmake-configure-log(7)" title="cmake-configure-log(7)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">cmake-configure-log(7)</span></code></a>. The log file may not exist if no events are logged.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">eventKindNames</span></code></dt><dd><p>A JSON array whose entries are each a JSON string naming one of the <span class="target" id="index-2-manual:cmake-configure-log(7)"></span><a class="reference internal" href="cmake-configure-log.7.html#manual:cmake-configure-log(7)" title="cmake-configure-log(7)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">cmake-configure-log(7)</span></code></a> versioned event kinds. At most one version of each configure log event kind will be listed. Although the configure log may contain other (versioned) event kinds, clients must ignore those that are not listed in this field.</p> </dd> </dl> </section> </section> <section id="object-kind-cache"> <h3><a class="toc-backref" href="#id18" role="doc-backlink">Object Kind "cache"</a><a class="headerlink" href="#object-kind-cache" title="Permalink to this heading">ΒΆ</a></h3> <p>The <code class="docutils literal notranslate"><span class="pre">cache</span></code> object kind lists cache entries. These are the <a class="reference internal" href="cmake-language.7.html#cmake-language-variables"><span class="std std-ref">Variables</span></a> stored in the persistent cache (<code class="docutils literal notranslate"><span class="pre">CMakeCache.txt</span></code>) for the build tree.</p> <p>There is only one <code class="docutils literal notranslate"><span class="pre">cache</span></code> object major version, version 2. Version 1 does not exist to avoid confusion with that from <span class="target" id="index-1-manual:cmake-server(7)"></span><a class="reference internal" href="cmake-server.7.html#manual:cmake-server(7)" title="cmake-server(7)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">cmake-server(7)</span></code></a> mode.</p> <section id="cache-version-2"> <h4><a class="toc-backref" href="#id19" role="doc-backlink">"cache" version 2</a><a class="headerlink" href="#cache-version-2" title="Permalink to this heading">ΒΆ</a></h4> <p><code class="docutils literal notranslate"><span class="pre">cache</span></code> object version 2 is a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"cache"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"entries"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"BUILD_SHARED_LIBS"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"value"</span><span class="p">:</span><span class="w"> </span><span class="s2">"ON"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"BOOL"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"properties"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"HELPSTRING"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"value"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Build shared libraries"</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"CMAKE_GENERATOR"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"value"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Unix Makefiles"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"INTERNAL"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"properties"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"HELPSTRING"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"value"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Name of generator."</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members specific to <code class="docutils literal notranslate"><span class="pre">cache</span></code> objects are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">entries</span></code></dt><dd><p>A JSON array whose entries are each a JSON object specifying a cache entry. The members of each entry are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the entry.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">value</span></code></dt><dd><p>A string specifying the value of the entry.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">type</span></code></dt><dd><p>A string specifying the type of the entry used by <span class="target" id="index-0-manual:cmake-gui(1)"></span><a class="reference internal" href="cmake-gui.1.html#manual:cmake-gui(1)" title="cmake-gui(1)"><code class="xref cmake cmake-manual docutils literal notranslate"><span class="pre">cmake-gui(1)</span></code></a> to choose a widget for editing.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">properties</span></code></dt><dd><p>A JSON array of entries specifying associated <a class="reference internal" href="cmake-properties.7.html#cache-entry-properties"><span class="std std-ref">cache entry properties</span></a>. Each entry is a JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt><dd><p>A string specifying the name of the cache entry property.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">value</span></code></dt><dd><p>A string specifying the value of the cache entry property.</p> </dd> </dl> </dd> </dl> </dd> </dl> </section> </section> <section id="object-kind-cmakefiles"> <h3><a class="toc-backref" href="#id20" role="doc-backlink">Object Kind "cmakeFiles"</a><a class="headerlink" href="#object-kind-cmakefiles" title="Permalink to this heading">ΒΆ</a></h3> <p>The <code class="docutils literal notranslate"><span class="pre">cmakeFiles</span></code> object kind lists files used by CMake while configuring and generating the build system. These include the <code class="docutils literal notranslate"><span class="pre">CMakeLists.txt</span></code> files as well as included <code class="docutils literal notranslate"><span class="pre">.cmake</span></code> files.</p> <p>There is only one <code class="docutils literal notranslate"><span class="pre">cmakeFiles</span></code> object major version, version 1.</p> <section id="cmakefiles-version-1"> <h4><a class="toc-backref" href="#id21" role="doc-backlink">"cmakeFiles" version 1</a><a class="headerlink" href="#cmakefiles-version-1" title="Permalink to this heading">ΒΆ</a></h4> <p><code class="docutils literal notranslate"><span class="pre">cmakeFiles</span></code> object version 1 is a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"cmakeFiles"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"paths"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"build"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/top-level-build-dir"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"source"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/top-level-source-dir"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"inputs"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"CMakeLists.txt"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"isGenerated"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/top-level-build-dir/.../CMakeSystem.cmake"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"isExternal"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/external/third-party/module.cmake"</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"isCMake"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"isExternal"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/path/to/cmake/Modules/CMakeGenericSystem.cmake"</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members specific to <code class="docutils literal notranslate"><span class="pre">cmakeFiles</span></code> objects are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">paths</span></code></dt><dd><p>A JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">source</span></code></dt><dd><p>A string specifying the absolute path to the top-level source directory, represented with forward slashes.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">build</span></code></dt><dd><p>A string specifying the absolute path to the top-level build directory, represented with forward slashes.</p> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">inputs</span></code></dt><dd><p>A JSON array whose entries are each a JSON object specifying an input file used by CMake when configuring and generating the build system. The members of each entry are:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>A string specifying the path to an input file to CMake, represented with forward slashes. If the file is inside the top-level source directory then the path is specified relative to that directory. Otherwise the path is absolute.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isGenerated</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> if the path specifies a file that is under the top-level build directory and the build is out-of-source. This member is not available on in-source builds.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isExternal</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> if the path specifies a file that is not under the top-level source or build directories.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">isCMake</span></code></dt><dd><p>Optional member that is present with boolean value <code class="docutils literal notranslate"><span class="pre">true</span></code> if the path specifies a file in the CMake installation.</p> </dd> </dl> </dd> </dl> </section> </section> <section id="object-kind-toolchains"> <h3><a class="toc-backref" href="#id22" role="doc-backlink">Object Kind "toolchains"</a><a class="headerlink" href="#object-kind-toolchains" title="Permalink to this heading">ΒΆ</a></h3> <p>The <code class="docutils literal notranslate"><span class="pre">toolchains</span></code> object kind lists properties of the toolchains used during the build. These include the language, compiler path, ID, and version.</p> <p>There is only one <code class="docutils literal notranslate"><span class="pre">toolchains</span></code> object major version, version 1.</p> <section id="toolchains-version-1"> <h4><a class="toc-backref" href="#id23" role="doc-backlink">"toolchains" version 1</a><a class="headerlink" href="#toolchains-version-1" title="Permalink to this heading">ΒΆ</a></h4> <p><code class="docutils literal notranslate"><span class="pre">toolchains</span></code> object version 1 is a JSON object:</p> <div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"kind"</span><span class="p">:</span><span class="w"> </span><span class="s2">"toolchains"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">"major"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">"minor"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"toolchains"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"language"</span><span class="p">:</span><span class="w"> </span><span class="s2">"C"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"compiler"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/usr/bin/cc"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"GNU"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="s2">"9.3.0"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"implicit"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"includeDirectories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib/gcc/x86_64-linux-gnu/9/include"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/local/include"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include/x86_64-linux-gnu"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include"</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"linkDirectories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib/gcc/x86_64-linux-gnu/9"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib/x86_64-linux-gnu"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/lib/x86_64-linux-gnu"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/lib"</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"linkFrameworkDirectories"</span><span class="p">:</span><span class="w"> </span><span class="p">[],</span><span class="w"></span> <span class="w"> </span><span class="nt">"linkLibraries"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="s2">"gcc"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc_s"</span><span class="p">,</span><span class="w"> </span><span class="s2">"c"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc_s"</span><span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"sourceFileExtensions"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="s2">"c"</span><span class="p">,</span><span class="w"> </span><span class="s2">"m"</span><span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"language"</span><span class="p">:</span><span class="w"> </span><span class="s2">"CXX"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"compiler"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/usr/bin/c++"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"GNU"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="s2">"9.3.0"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="nt">"implicit"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"></span> <span class="w"> </span><span class="nt">"includeDirectories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include/c++/9"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include/x86_64-linux-gnu/c++/9"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include/c++/9/backward"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib/gcc/x86_64-linux-gnu/9/include"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/local/include"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include/x86_64-linux-gnu"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/include"</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"linkDirectories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib/gcc/x86_64-linux-gnu/9"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib/x86_64-linux-gnu"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/usr/lib"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/lib/x86_64-linux-gnu"</span><span class="p">,</span><span class="w"></span> <span class="w"> </span><span class="s2">"/lib"</span><span class="w"></span> <span class="w"> </span><span class="p">],</span><span class="w"></span> <span class="w"> </span><span class="nt">"linkFrameworkDirectories"</span><span class="p">:</span><span class="w"> </span><span class="p">[],</span><span class="w"></span> <span class="w"> </span><span class="nt">"linkLibraries"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="s2">"stdc++"</span><span class="p">,</span><span class="w"> </span><span class="s2">"m"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc_s"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc"</span><span class="p">,</span><span class="w"> </span><span class="s2">"c"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc_s"</span><span class="p">,</span><span class="w"> </span><span class="s2">"gcc"</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">},</span><span class="w"></span> <span class="w"> </span><span class="nt">"sourceFileExtensions"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"></span> <span class="w"> </span><span class="s2">"C"</span><span class="p">,</span><span class="w"> </span><span class="s2">"M"</span><span class="p">,</span><span class="w"> </span><span class="s2">"c++"</span><span class="p">,</span><span class="w"> </span><span class="s2">"cc"</span><span class="p">,</span><span class="w"> </span><span class="s2">"cpp"</span><span class="p">,</span><span class="w"> </span><span class="s2">"cxx"</span><span class="p">,</span><span class="w"> </span><span class="s2">"mm"</span><span class="p">,</span><span class="w"> </span><span class="s2">"CPP"</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="w"> </span><span class="p">}</span><span class="w"></span> <span class="w"> </span><span class="p">]</span><span class="w"></span> <span class="p">}</span><span class="w"></span> </pre></div> </div> <p>The members specific to <code class="docutils literal notranslate"><span class="pre">toolchains</span></code> objects are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">toolchains</span></code></dt><dd><p>A JSON array whose entries are each a JSON object specifying a toolchain associated with a particular language. The members of each entry are:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">language</span></code></dt><dd><p>A JSON string specifying the toolchain language, like C or CXX. Language names are the same as language names that can be passed to the <span class="target" id="index-2-command:project"></span><a class="reference internal" href="../command/project.html#command:project" title="project"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">project()</span></code></a> command. Because CMake only supports a single toolchain per language, this field can be used as a key.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">compiler</span></code></dt><dd><p>A JSON object containing members:</p> <dl> <dt><code class="docutils literal notranslate"><span class="pre">path</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_COMPILER"></span><a class="reference internal" href="../variable/CMAKE_LANG_COMPILER.html#variable:CMAKE_<LANG>_COMPILER" title="CMAKE_<LANG>_COMPILER"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_COMPILER</span></code></a> variable is defined for the current language. Its value is a JSON string holding the path to the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">id</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_COMPILER_ID"></span><a class="reference internal" href="../variable/CMAKE_LANG_COMPILER_ID.html#variable:CMAKE_<LANG>_COMPILER_ID" title="CMAKE_<LANG>_COMPILER_ID"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_COMPILER_ID</span></code></a> variable is defined for the current language. Its value is a JSON string holding the ID (GNU, MSVC, etc.) of the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">version</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_COMPILER_VERSION"></span><a class="reference internal" href="../variable/CMAKE_LANG_COMPILER_VERSION.html#variable:CMAKE_<LANG>_COMPILER_VERSION" title="CMAKE_<LANG>_COMPILER_VERSION"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_COMPILER_VERSION</span></code></a> variable is defined for the current language. Its value is a JSON string holding the version of the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">target</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_COMPILER_TARGET"></span><a class="reference internal" href="../variable/CMAKE_LANG_COMPILER_TARGET.html#variable:CMAKE_<LANG>_COMPILER_TARGET" title="CMAKE_<LANG>_COMPILER_TARGET"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_COMPILER_TARGET</span></code></a> variable is defined for the current language. Its value is a JSON string holding the cross-compiling target of the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">implicit</span></code></dt><dd><p>A JSON object containing members:</p> <dl class="simple"> <dt><code class="docutils literal notranslate"><span class="pre">includeDirectories</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES"></span><a class="reference internal" href="../variable/CMAKE_LANG_IMPLICIT_INCLUDE_DIRECTORIES.html#variable:CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES" title="CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES</span></code></a> variable is defined for the current language. Its value is a JSON array of JSON strings where each string holds a path to an implicit include directory for the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">linkDirectories</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES"></span><a class="reference internal" href="../variable/CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES.html#variable:CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES" title="CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES</span></code></a> variable is defined for the current language. Its value is a JSON array of JSON strings where each string holds a path to an implicit link directory for the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">linkFrameworkDirectories</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES"></span><a class="reference internal" href="../variable/CMAKE_LANG_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES.html#variable:CMAKE_<LANG>_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES" title="CMAKE_<LANG>_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES</span></code></a> variable is defined for the current language. Its value is a JSON array of JSON strings where each string holds a path to an implicit link framework directory for the compiler.</p> </dd> <dt><code class="docutils literal notranslate"><span class="pre">linkLibraries</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES"></span><a class="reference internal" href="../variable/CMAKE_LANG_IMPLICIT_LINK_LIBRARIES.html#variable:CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES" title="CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES</span></code></a> variable is defined for the current language. Its value is a JSON array of JSON strings where each string holds a path to an implicit link library for the compiler.</p> </dd> </dl> </dd> </dl> </dd> <dt><code class="docutils literal notranslate"><span class="pre">sourceFileExtensions</span></code></dt><dd><p>Optional member that is present when the <span class="target" id="index-0-variable:CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS"></span><a class="reference internal" href="../variable/CMAKE_LANG_SOURCE_FILE_EXTENSIONS.html#variable:CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS" title="CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS"><code class="xref cmake cmake-variable docutils literal notranslate"><span class="pre">CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS</span></code></a> variable is defined for the current language. Its value is a JSON array of JSON strings where each each string holds a file extension (without the leading dot) for the language.</p> </dd> </dl> </dd> </dl> </section> </section> </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-file-api(7)</a><ul> <li><a class="reference internal" href="#introduction">Introduction</a></li> <li><a class="reference internal" href="#api-v1">API v1</a><ul> <li><a class="reference internal" href="#v1-shared-stateless-query-files">v1 Shared Stateless Query Files</a></li> <li><a class="reference internal" href="#v1-client-stateless-query-files">v1 Client Stateless Query Files</a></li> <li><a class="reference internal" href="#v1-client-stateful-query-files">v1 Client Stateful Query Files</a></li> <li><a class="reference internal" href="#v1-reply-index-file">v1 Reply Index File</a><ul> <li><a class="reference internal" href="#v1-reply-file-reference">v1 Reply File Reference</a></li> </ul> </li> <li><a class="reference internal" href="#v1-reply-files">v1 Reply Files</a></li> </ul> </li> <li><a class="reference internal" href="#object-kinds">Object Kinds</a><ul> <li><a class="reference internal" href="#object-kind-codemodel">Object Kind "codemodel"</a><ul> <li><a class="reference internal" href="#codemodel-version-2">"codemodel" version 2</a></li> <li><a class="reference internal" href="#codemodel-version-2-directory-object">"codemodel" version 2 "directory" object</a></li> <li><a class="reference internal" href="#codemodel-version-2-target-object">"codemodel" version 2 "target" object</a></li> <li><a class="reference internal" href="#codemodel-version-2-backtrace-graph">"codemodel" version 2 "backtrace graph"</a></li> </ul> </li> <li><a class="reference internal" href="#object-kind-configurelog">Object Kind "configureLog"</a><ul> <li><a class="reference internal" href="#configurelog-version-1">"configureLog" version 1</a></li> </ul> </li> <li><a class="reference internal" href="#object-kind-cache">Object Kind "cache"</a><ul> <li><a class="reference internal" href="#cache-version-2">"cache" version 2</a></li> </ul> </li> <li><a class="reference internal" href="#object-kind-cmakefiles">Object Kind "cmakeFiles"</a><ul> <li><a class="reference internal" href="#cmakefiles-version-1">"cmakeFiles" version 1</a></li> </ul> </li> <li><a class="reference internal" href="#object-kind-toolchains">Object Kind "toolchains"</a><ul> <li><a class="reference internal" href="#toolchains-version-1">"toolchains" version 1</a></li> </ul> </li> </ul> </li> </ul> </li> </ul> </div> <div> <h4>Previous topic</h4> <p class="topless"><a href="../envvar/CCMAKE_COLORS.html" title="previous chapter">CCMAKE_COLORS</a></p> </div> <div> <h4>Next topic</h4> <p class="topless"><a href="cmake-generator-expressions.7.html" title="next chapter">cmake-generator-expressions(7)</a></p> </div> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/manual/cmake-file-api.7.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-generator-expressions.7.html" title="cmake-generator-expressions(7)" >next</a> |</li> <li class="right" > <a href="../envvar/CCMAKE_COLORS.html" title="CCMAKE_COLORS" >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.3 Documentation</a> » </li> <li class="nav-item nav-item-this"><a href="">cmake-file-api(7)</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>