[cmake-developers] Issues with overriding Python version, possible bug?
Rolf Eike Beer
eike at sf-mail.de
Tue May 2 03:19:38 EDT 2017
Am 2017-04-29 22:47, schrieb Alan W. Irwin:
> My use case (which I am pretty sure is a common one) is that for
> PLplot I want the default behaviour of our build system to be that it
> looks for Python 3, but if that does not exist it looks for Python 2.
>
> It appears the following logic implements that desired default
> behaviour.
>
> find_package(PythonInterp 3)
> find_package(PythonInterp 2)
>
> So far so good, but I am sure there will be some of our users that
> prefer Python 2 even when Python 3 is installed on their system.
find_package(PythonInterp 2 EXACT)
Eike
--
More information about the cmake-developers
mailing list