-
Notifications
You must be signed in to change notification settings - Fork 158
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
Faulty detection of C++11 support. #55
Comments
@elfprince13 thanks for the report, any chance you would be able to contribute a pull request with a fix? |
I've just commented them out in our fork (https://github.com/Geopipe/COLLADA2GLTF), because it's pretty easy to identify by inspection of error messages when compilation fails due to C++11 not being supported. I suspect you guys will want a more user-friendly fix. |
Instead of manually setting the (compiler-specific) flags, it should be possible to just use
(with 98, 11 or 17). (This might need a CMake version newer than 2.8, though, and .... I cannot test it appropriately right now, so no PR from me here, just as a hint) |
Yeah, that's I use in other projects, with a for-loop to iterate over both
C and CXX (and disable GNU extensions for strict standards compliance). If
you think that's a good idea, I'll happily submit the PR here. If it needs
a newer CMake version, is there any particular reason not to bump the
requirement to something newer?
On Tue, Jun 20, 2017 at 4:40 PM Marco Hutter ***@***.***> wrote:
Instead of manually setting the (compiler-specific) flags, it should be
possible to just use
set(CMAKE_CXX_STANDARD 11)
(with 98, 11 or 17).
(This might need a CMake version newer than 2.8, though, and .... I cannot
test it appropriately right now, so no PR from me here, just as a hint)
--
~Thomas
|
Given that the required version (which I think is 3.1) is out for more than a year now (according to https://cmake.org/files/ ), requiring it should be fine, but the decision has to be made by the main maintainers here. |
|
Is more comprehensive, and standards-enforcing. |
This was done in #74. |
This snippet causes configuration to abort on my Linux machine when using clang (
clang --version
returns the following:).
However Clang is absolutely a C++11 compliant compiler, and I can manually pass it the -std=c++11 flag without incident.
The text was updated successfully, but these errors were encountered: