Skip to content

Improve finding python with cmake >= 3.12.0 #2156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

felfert
Copy link

@felfert felfert commented Apr 8, 2020

Hi,

With this change, during setup, cmake uses the new "Python" cmake module instead of the old "PythonInterp" if the cmake version is >= 3.12.0. This has the advantage of properly detecting python3 even on systems where both python2 and python3 are installed and python2 preceedes python3 in the PATH environment variable.

I have the above situation here, and therefore would appreciate if you could merge that. It also applies to v.2.5 without changes.

Cheers
-Fritz

@felfert
Copy link
Author

felfert commented Apr 8, 2020

Well, it appears that cmake 3.12.4 was broken again (i'm currenly using cmake 3.17.0) So I close this for now, check the various versions and resubmit when I got the proper version determined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant