Discussion:
gnu++11
Benjamin Piwowarski
2014-04-22 07:44:30 UTC
Permalink
Is there any reason why in cmake builds with C++11 on the gnu++11 mode (—std=gnu++11) is preferred to the C++11 standard (--std=c++11)?

Benjamin 
Kornel Benko
2014-04-22 08:02:55 UTC
Permalink
Post by Benjamin Piwowarski
Is there any reason why in cmake builds with C++11 on the gnu++11 mode (—std=gnu++11) is preferred to the C++11 standard (--std=c++11)?
Benjamin
It is not 'preferred'. It is simply the first test.
BTW, the test is not working for clang, therefore the extra 'if'.
We are speaking about 'FindCXX11Compiler.cmake', don't we?

Kornel

Loading...