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

Make Python version selection in CMake more convenient #589

Merged
merged 1 commit into from
Jan 6, 2017

Conversation

dean0x7d
Copy link
Member

@dean0x7d dean0x7d commented Jan 4, 2017

See #587. This makes it possible to use a non-CACHE variable. For example:

set(PYBIND11_PYTHON_VERSION <value>)
add_subdirectory(pybind11)

This also improves consistency with find_package(pybind11) since it already accepts a regular variable.

This way a non-CACHE variable can also be used. For example:
```
set(PYBIND11_PYTHON_VERSION <value>)
add_subdirectory(...)
```
@wjakob
Copy link
Member

wjakob commented Jan 6, 2017

Great, thank you!

@wjakob wjakob merged commit 5b5e3de into pybind:master Jan 6, 2017
@dean0x7d dean0x7d deleted the cmake branch January 7, 2017 20:15
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