-
Notifications
You must be signed in to change notification settings - Fork 22
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
please remove target_compile_features from INTERFACE #42
Comments
I did a bit research on this:
|
I agree that we should probably conditionally remove the compile features as I have had problems with it as well, however I wonder if it wouldn't be better to search for "-std=" instead, as that would also include other versions. |
I would try to upgrade to 3.8. For versions below setting the flag is the only way to get c++17 support, from my perspective it is the only valid usage of the flag (-std=...) as part of CMAKE_CXX_FLAGS. That is why I did not consider other possible combinations. The "gnu" versions of the flags should probably be checked as well. |
The automatically appended
--std=gnu++11
overrides the--std=c++1z
of my project. It is a shame that cmake does not support unfinished standards.The text was updated successfully, but these errors were encountered: