Skip to content

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