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 <[email protected]>
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.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev