Skip to content

Commit

Permalink
deploy: ceff637
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmrichard committed Jan 11, 2024
1 parent 8cc0fb6 commit d425de4
Show file tree
Hide file tree
Showing 11 changed files with 222 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

##############################################################
cmaize.user_api/dependencies/find_or_build_optional_dependency
##############################################################

.. module:: cmaize.user_api/dependencies/find_or_build_optional_dependency


.. function:: cmaize_find_or_build_optional_dependency(_cfobod_name _cfobod_flag)

Wraps the process of finding, or building, an optional dependency.

This method is largely the same as cmaize_find_optional_dependency, but
instead wraps a call to ``cmaize_find_or_build_dependency``.

:param name: The name of the dependency.
:type name: desc
:param flag: The variable to use as a flag. Used to name the compile
definition.
:type flag: desc
:param kwargs: Keyword arguments to forward to
``cmaize_find_or_build_dependency``. See the documentation for
``cmaize_find_or_build_dependency`` for the full list.


Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ cmaize.user_api/dependencies
find_dependency
find_optional_dependency
find_or_build_dependency
find_or_build_optional_dependency

4 changes: 2 additions & 2 deletions api/developer/cmaize/user_api/add_executable.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
<link rel="next" title="cmaize.user_api/add_library" href="add_library.html" />
<link rel="prev" title="cmaize.user_api/dependencies/find_or_build_dependency" href="dependencies/find_or_build_dependency.html" />
<link rel="prev" title="cmaize.user_api/dependencies/find_or_build_optional_dependency" href="dependencies/find_or_build_optional_dependency.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -171,7 +171,7 @@
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="dependencies/find_or_build_dependency.html" class="btn btn-neutral float-left" title="cmaize.user_api/dependencies/find_or_build_dependency" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="dependencies/find_or_build_optional_dependency.html" class="btn btn-neutral float-left" title="cmaize.user_api/dependencies/find_or_build_optional_dependency" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="add_library.html" class="btn btn-neutral float-right" title="cmaize.user_api/add_library" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script src="../../../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../../search.html" />
<link rel="next" title="cmaize.user_api/add_executable" href="../add_executable.html" />
<link rel="next" title="cmaize.user_api/dependencies/find_or_build_optional_dependency" href="find_or_build_optional_dependency.html" />
<link rel="prev" title="cmaize.user_api/dependencies/find_optional_dependency" href="find_optional_dependency.html" />
</head>

Expand Down Expand Up @@ -142,7 +142,7 @@
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="find_optional_dependency.html" class="btn btn-neutral float-left" title="cmaize.user_api/dependencies/find_optional_dependency" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="../add_executable.html" class="btn btn-neutral float-right" title="cmaize.user_api/add_executable" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="find_or_build_optional_dependency.html" class="btn btn-neutral float-right" title="cmaize.user_api/dependencies/find_or_build_optional_dependency" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../../../../../">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cmaize.user_api/dependencies/find_or_build_optional_dependency &mdash; CMaize 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../../../_static/css/theme.css?v=19f00094" />


<!--[if lt IE 9]>
<script src="../../../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../../../_static/documentation_options.js?v=8d563738"></script>
<script src="../../../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../../search.html" />
<link rel="next" title="cmaize.user_api/add_executable" href="../add_executable.html" />
<link rel="prev" title="cmaize.user_api/dependencies/find_or_build_dependency" href="find_or_build_dependency.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../../../../../index.html">

<img src="../../../../../_static/logo.png" class="logo" alt="Logo"/>
</a>
<div class="version">
1.0.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../../../../overview.html">Overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../../../background/index.html">CMaize Background</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../../../getting_started/index.html">Getting Started</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../../../../index.html">API</a><ul class="current">
<li class="toctree-l2 current"><a class="reference internal" href="../../index.html">Refactored Developer API (in progress)</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../../package_managers/index.html">cmaize.package_managers</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../project/index.html">cmaize.project</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../targets/index.html">cmaize.targets</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../toolchain/index.html">cmaize.toolchain</a></li>
<li class="toctree-l3 current"><a class="reference internal" href="../index.html">cmaize.user_api</a><ul class="current">
<li class="toctree-l4 current"><a class="reference internal" href="index.html">cmaize.user_api/dependencies</a></li>
<li class="toctree-l4"><a class="reference internal" href="../add_executable.html">cmaize.user_api/add_executable</a></li>
<li class="toctree-l4"><a class="reference internal" href="../add_library.html">cmaize.user_api/add_library</a></li>
<li class="toctree-l4"><a class="reference internal" href="../add_package.html">cmaize.user_api/add_package</a></li>
<li class="toctree-l4"><a class="reference internal" href="../add_tests.html">cmaize.user_api/add_tests</a></li>
<li class="toctree-l4"><a class="reference internal" href="../cmaize_option.html">cmaize.user_api/cmaize_option</a></li>
<li class="toctree-l4"><a class="reference internal" href="../cmaize_project.html">cmaize.user_api/cmaize_project</a></li>
<li class="toctree-l4"><a class="reference internal" href="../user_api.html">cmaize.user_api/user_api</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../utilities/index.html">cmaize.utilities</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../cmaize.html">cmaize.cmaize</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../cmaize_impl.html">cmaize.cmaize_impl</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../globals.html">cmaize.globals</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../../../../developer/index.html">Developing CMaize</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../../../declaring_targets/index.html">Declaring Build Targets</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../../../dependencies/index.html">Declaring Dependencies</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../../../bibliography/bibliography.html">References</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../index.html">CMaize</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../../../index.html">API</a></li>
<li class="breadcrumb-item"><a href="../../index.html">cmaize</a></li>
<li class="breadcrumb-item"><a href="../index.html">cmaize.user_api</a></li>
<li class="breadcrumb-item"><a href="index.html">cmaize.user_api/dependencies</a></li>
<li class="breadcrumb-item active">cmaize.user_api/dependencies/find_or_build_optional_dependency</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/CMakePP/CMaize/edit/master/docs/source/api/developer/cmaize/user_api/dependencies/find_or_build_optional_dependency.rst" class="fa fa-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="module-cmaize.user_api-dependencies-find_or_build_optional_dependency">
<span id="cmaize-user-api-dependencies-find-or-build-optional-dependency"></span><h1>cmaize.user_api/dependencies/find_or_build_optional_dependency<a class="headerlink" href="#module-cmaize.user_api-dependencies-find_or_build_optional_dependency" title="Link to this heading"></a></h1>
<dl class="py function">
<dt class="sig sig-object py" id="cmaize.user_api-dependencies-find_or_build_optional_dependency.cmaize_find_or_build_optional_dependency">
<span class="sig-prename descclassname"><span class="pre">cmaize.user_api/dependencies/find_or_build_optional_dependency.</span></span><span class="sig-name descname"><span class="pre">cmaize_find_or_build_optional_dependency</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">_cfobod_name</span> <span class="pre">_cfobod_flag</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#cmaize.user_api-dependencies-find_or_build_optional_dependency.cmaize_find_or_build_optional_dependency" title="Link to this definition"></a></dt>
<dd><p>Wraps the process of finding, or building, an optional dependency.</p>
<p>This method is largely the same as cmaize_find_optional_dependency, but
instead wraps a call to <code class="docutils literal notranslate"><span class="pre">cmaize_find_or_build_dependency</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>name</strong> (<em>desc</em>) – The name of the dependency.</p></li>
<li><p><strong>flag</strong> (<em>desc</em>) – The variable to use as a flag. Used to name the compile
definition.</p></li>
<li><p><strong>kwargs</strong> – Keyword arguments to forward to
<code class="docutils literal notranslate"><span class="pre">cmaize_find_or_build_dependency</span></code>. See the documentation for
<code class="docutils literal notranslate"><span class="pre">cmaize_find_or_build_dependency</span></code> for the full list.</p></li>
</ul>
</dd>
</dl>
</dd></dl>

</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="find_or_build_dependency.html" class="btn btn-neutral float-left" title="cmaize.user_api/dependencies/find_or_build_dependency" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="../add_executable.html" class="btn btn-neutral float-right" title="cmaize.user_api/add_executable" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2020, CMakePP Team.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
4 changes: 4 additions & 0 deletions api/developer/cmaize/user_api/dependencies/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ <h1>cmaize.user_api/dependencies<a class="headerlink" href="#cmaize-user-api-dep
<li class="toctree-l2"><a class="reference internal" href="find_or_build_dependency.html#cmaize.user_api-dependencies-find_or_build_dependency.cmaize_find_or_build_dependency"><code class="docutils literal notranslate"><span class="pre">cmaize_find_or_build_dependency()</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="find_or_build_optional_dependency.html">cmaize.user_api/dependencies/find_or_build_optional_dependency</a><ul>
<li class="toctree-l2"><a class="reference internal" href="find_or_build_optional_dependency.html#cmaize.user_api-dependencies-find_or_build_optional_dependency.cmaize_find_or_build_optional_dependency"><code class="docutils literal notranslate"><span class="pre">cmaize_find_or_build_optional_dependency()</span></code></a></li>
</ul>
</li>
</ul>
</div>
</section>
Expand Down
1 change: 1 addition & 0 deletions api/developer/cmaize/user_api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ <h1>cmaize.user_api<a class="headerlink" href="#cmaize-user-api" title="Link to
<li class="toctree-l2"><a class="reference internal" href="dependencies/find_dependency.html">cmaize.user_api/dependencies/find_dependency</a></li>
<li class="toctree-l2"><a class="reference internal" href="dependencies/find_optional_dependency.html">cmaize.user_api/dependencies/find_optional_dependency</a></li>
<li class="toctree-l2"><a class="reference internal" href="dependencies/find_or_build_dependency.html">cmaize.user_api/dependencies/find_or_build_dependency</a></li>
<li class="toctree-l2"><a class="reference internal" href="dependencies/find_or_build_optional_dependency.html">cmaize.user_api/dependencies/find_or_build_optional_dependency</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="add_executable.html">cmaize.user_api/add_executable</a><ul>
Expand Down
11 changes: 11 additions & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,13 @@ <h2 id="C">C</h2>

<ul>
<li><a href="api/developer/cmaize/user_api/dependencies/find_or_build_dependency.html#module-cmaize.user_api-dependencies-find_or_build_dependency">module</a>
</li>
</ul></li>
<li>
cmaize.user_api/dependencies/find_or_build_optional_dependency

<ul>
<li><a href="api/developer/cmaize/user_api/dependencies/find_or_build_optional_dependency.html#module-cmaize.user_api-dependencies-find_or_build_optional_dependency">module</a>
</li>
</ul></li>
<li>
Expand Down Expand Up @@ -715,6 +722,8 @@ <h2 id="C">C</h2>
<li><a href="api/developer/cmaize/user_api/dependencies/find_optional_dependency.html#cmaize.user_api-dependencies-find_optional_dependency.cmaize_find_optional_dependency">cmaize_find_optional_dependency() (in module cmaize.user_api/dependencies/find_optional_dependency)</a>
</li>
<li><a href="api/developer/cmaize/user_api/dependencies/find_or_build_dependency.html#cmaize.user_api-dependencies-find_or_build_dependency.cmaize_find_or_build_dependency">cmaize_find_or_build_dependency() (in module cmaize.user_api/dependencies/find_or_build_dependency)</a>
</li>
<li><a href="api/developer/cmaize/user_api/dependencies/find_or_build_optional_dependency.html#cmaize.user_api-dependencies-find_or_build_optional_dependency.cmaize_find_or_build_optional_dependency">cmaize_find_or_build_optional_dependency() (in module cmaize.user_api/dependencies/find_or_build_optional_dependency)</a>
</li>
<li><a href="api/developer/cmaize/user_api/cmaize_option.html#cmaize.user_api-cmaize_option.cmaize_option">cmaize_option() (in module cmaize.user_api/cmaize_option)</a>
</li>
Expand Down Expand Up @@ -1053,6 +1062,8 @@ <h2 id="M">M</h2>
<li><a href="api/developer/cmaize/user_api/dependencies/find_optional_dependency.html#module-cmaize.user_api-dependencies-find_optional_dependency">cmaize.user_api/dependencies/find_optional_dependency</a>
</li>
<li><a href="api/developer/cmaize/user_api/dependencies/find_or_build_dependency.html#module-cmaize.user_api-dependencies-find_or_build_dependency">cmaize.user_api/dependencies/find_or_build_dependency</a>
</li>
<li><a href="api/developer/cmaize/user_api/dependencies/find_or_build_optional_dependency.html#module-cmaize.user_api-dependencies-find_or_build_optional_dependency">cmaize.user_api/dependencies/find_or_build_optional_dependency</a>
</li>
<li><a href="api/developer/cmaize/user_api/dependencies/impl_/check_optional_flag.html#module-cmaize.user_api-dependencies-impl_-check_optional_flag">cmaize.user_api/dependencies/impl_/check_optional_flag</a>
</li>
Expand Down
Binary file modified objects.inv
Binary file not shown.
5 changes: 5 additions & 0 deletions py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ <h1>Python Module Index</h1>
<td>&#160;&#160;&#160;
<a href="api/developer/cmaize/user_api/dependencies/find_or_build_dependency.html#module-cmaize.user_api-dependencies-find_or_build_dependency"><code class="xref">cmaize.user_api/dependencies/find_or_build_dependency</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="api/developer/cmaize/user_api/dependencies/find_or_build_optional_dependency.html#module-cmaize.user_api-dependencies-find_or_build_optional_dependency"><code class="xref">cmaize.user_api/dependencies/find_or_build_optional_dependency</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit d425de4

Please sign in to comment.