[CMake] c++2a

Angel Campoverde campoverdeangelf at gmail.com
Mon May 6 19:15:13 EDT 2019


Hello,

I am looking at:

https://cmake.org/cmake/help/v3.14/prop_tgt/CXX_STANDARD.html

and I see that I can pass 20, for c++20. However I do not have that in my
compiler, I only have c++2a and gnu++2a, this means that CMake goes back to
c++17 and macros like __VA_OPT__:

https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html

can't  be used. I know that all this should work, because I can compile
myself a small test piece of code with:

g++ code.cxx -o code -std=c++2a

so the problems is CMake. Is there a way to go around this?

Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190506/790a5aeb/attachment.html>


More information about the CMake mailing list