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

Improved c++14/17 integration, follows more closely modern cmake #175

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

Conversation

emmenlau
Copy link
Contributor

Currently xtensor-blas supports cmake prior to 3.8 by not using target_compile_features to set the c++14/17 standard. This can be a problem when mixed with projects that do use target_compile_features to set the standard, because cmake will not match the two choices. Therefore with the current implementation, both flags may be effective at the same time, which can result in compiler options like

cc ... -std=c++17 ... -std=gnu++11 ...

where the later option wins.

If xtensor should continue to support cmake prior to 3.8, then I propose to use target_compile_features when a sufficiently recent cmake is found. Otherwise I'd recommend to set the minimum cmake to 3.8?

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