Skip to content
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

Improve the build system to use find_package(Python) instead of find_package(PythonLibs) #81

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

RaulPPelaez
Copy link
Contributor

Calling find_package with Python and then PythonLibs was finding the python exec from conda but the libs and includes in my system, which was causing all kinds of weird errors.
find_package(PythonLibs) was deprecated in CMake 3.12, find_package(Python) supersedes it. The current CMakeLists requires 3.20.
I modified CMakeLists.txt to only use find_package(Python) for the exec and the development libraries.

@raimis raimis self-requested a review January 17, 2023 17:40
Copy link
Contributor

@raimis raimis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@raimis raimis merged commit 3c96f5b into openmm:master Jan 17, 2023
@raimis raimis mentioned this pull request Mar 2, 2023
@raimis raimis changed the title Now CMakeFiles.txt only uses find_package(Python), not PythonLibs Improve the build system to use find_package(Python) instead of find_package(PythonLibs) Mar 3, 2023
@raimis
Copy link
Contributor

raimis commented Mar 3, 2023

Rename to make a release log clear.

@RaulPPelaez RaulPPelaez deleted the cmake branch March 22, 2023 16:05
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.

2 participants