Open EduMenges opened 3 weeks ago
This is an issue that has been opened for 4+ years on CMake.
Adding it to the toolchain is a workaround until CMake finally "fixes" it.
In most cases, simply adding set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++${CMAKE_CXX_STANDARD}") works, tho it will not work with GNU extensions.
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++${CMAKE_CXX_STANDARD}")
The same can be done for C_STANDARD.
C_STANDARD
tho it will not work with GNU extensions
you should use gnu++${CMAKE_CXX_STANDARD}
gnu++${CMAKE_CXX_STANDARD}
This is an issue that has been opened for 4+ years on CMake.
Adding it to the toolchain is a workaround until CMake finally "fixes" it.
In most cases, simply adding
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++${CMAKE_CXX_STANDARD}")
works, tho it will not work with GNU extensions.The same can be done for
C_STANDARD
.