<div dir="ltr"><div>Something like</div><div><br></div><div><div><span style="font-family:monospace">option(BUILD_PYTHON_BINDINGS "Build Python bindings" ON)</span></div><div><span style="font-family:monospace">if (BUILD_PYTHON_BINDINGS)<br></span></div><div><span style="font-family:monospace"> if (Python_LOOKUP_VERSION)<br> set(Python_FIND_STRATEGY VERSION)<br> find_package(Python ${Python_LOOKUP_VERSION} EXACT COMPONENTS Interpreter Development NumPy)<br> else ()<br> set(Python_FIND_STRATEGY LOCATION)<br> find_package(Python 3.6 COMPONENTS Interpreter Development NumPy)<br> endif ()</span></div><div><span style="font-family:monospace">endif ()</span></div><div><span style="font-family:monospace"></span></div></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Do I do the PR into master or into v3.5.0alpha1 ?<br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 6 Apr 2022 at 17:47, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>But maybe there is a better solution.</div>
<div>If that is Ok for you, I can create a PR.</div>
</div>
</blockquote>
sounds good, but also move the "<span>option</span>(<span>BUILD_PYTHON_BINDINGS</span>
<span>"Build Python bindings"</span> <span>ON</span>)" from swig/CMakeLists.txt to top
CMakeLists.txt, just before testing it<br>
<blockquote type="cite">
<pre></pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>