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 python and boost package finding in CMake. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

panzergame
Copy link

Instead of custom commands, find_package( python …) is used and
provide variables for include directories and site packages.

In the same time recent versions of Boost (~>1.70) don't provide
"python" module but "python27", "python35" etc… modules.
Python version is used to retrieve name of boost python module.

User can still control python version with advanced option
"PYTHON_VERSION"

Instead of custom commands, find_package( python …) is used and
provide variables for include directories and site packages.

In the same time recent versions of Boost (~>1.70) don't provide
"python" module but "python27", "python35" etc… modules.
Python version is used to retrieve name of boost python module.

User can still control python version with advanced option
"PYTHON_VERSION"
OUTPUT_VARIABLE Python_Includes
)
message(STATUS "Python include dir:" ${Python_Includes})
set(PYTHON_VERSION 3.6)
Copy link
Member

@neomilium neomilium Sep 26, 2020

Choose a reason for hiding this comment

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

This can not be hardcoded... Python version must be detected as it depends on the target system.

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