[gdal-dev] CMake - cross compiling - Python

Javier Jimenez Shaw j1 at jimenezshaw.com
Wed Apr 6 09:06:44 PDT 2022


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 ()

Do I do the PR into master or into v3.5.0alpha1 ?
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220406/01f0f6e5/attachment.html>


More information about the gdal-dev mailing list