[gdal-dev] CMake - cross compiling - Python

Even Rouault even.rouault at spatialys.com
Wed Apr 6 09:08:09 PDT 2022


Le 06/04/2022 à 18:06, Javier Jimenez Shaw a écrit :
> Something like
>
> option(BUILD_PYTHON_BINDINGS "Build Python bindings" ON)
> if (BUILD_PYTHON_BINDINGS)
>   if (Python_LOOKUP_VERSION)
>     set(Python_FIND_STRATEGY VERSION)
>     find_package(Python ${Python_LOOKUP_VERSION} EXACT COMPONENTS 
> Interpreter Development NumPy)
>   else ()
>     set(Python_FIND_STRATEGY LOCATION)
>     find_package(Python 3.6 COMPONENTS Interpreter Development NumPy)
>   endif ()
> endif ()
>
yes
> Do I do the PR into master or into v3.5.0alpha1 ?
master. (v3.5.0alpha1 is just a tag, not a branch)
> .___ ._ ..._ .. . ._. .___ .. __ . _. . __..  ... .... ._ .__
> Entre dos pensamientos racionales
> hay infinitos pensamientos irracionales.
>
>
>
> On Wed, 6 Apr 2022 at 17:47, Even Rouault <even.rouault at spatialys.com> 
> wrote:
>
>
>>     But maybe there is a better solution.
>>     If that is Ok for you, I can create a PR.
>     sounds good, but also move the "option(BUILD_PYTHON_BINDINGS
>     "Build Python bindings" ON)" from swig/CMakeLists.txt to top
>     CMakeLists.txt, just before testing it
>
>     -- 
>     http://www.spatialys.com
>     My software is free, but my time generally not.
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220406/bc7aadef/attachment-0001.html>


More information about the gdal-dev mailing list