Closed Mi-La closed 1 week ago
Zserio version and language Zserio: 2.14.0 Language: C++
Describe the bug Check for minimum C++ standard doesn't work in some cases.
Expected behavior The check will fire an error when C++ standard is lower than C++11.
Additional context The check is here https://github.com/ndsev/zserio/blob/aba07d11b3b8732966d8f6a6962258e0203764db/compiler/extensions/cpp/runtime/src/CMakeLists.txt#L20-L22.
It seems that when compilers uses a default C++ standard version which is lower than C++11, the check doesn't work.
See failed builds on conan-center-index for MacOS Clang 13 and gcc 5.
See https://github.com/conan-io/conan-center-index/pull/23846#discussion_r1599519020.
Zserio version and language Zserio: 2.14.0 Language: C++
Describe the bug Check for minimum C++ standard doesn't work in some cases.
Expected behavior The check will fire an error when C++ standard is lower than C++11.
Additional context The check is here https://github.com/ndsev/zserio/blob/aba07d11b3b8732966d8f6a6962258e0203764db/compiler/extensions/cpp/runtime/src/CMakeLists.txt#L20-L22.
It seems that when compilers uses a default C++ standard version which is lower than C++11, the check doesn't work.
See failed builds on conan-center-index for MacOS Clang 13 and gcc 5.