Open doronbehar opened 8 months ago
Maybe you could keep the check logic and call set_property(TARGET tests PROPERTY CXX_STANDARD 14)
in tests/src/CMakeLists.txt
. This way the library keeps using C++11 for the actual code and switches to C++14 only for gtests.
At NixOS we are experiencing this error with our own gtest 1.14:
We managed to fix the tests with this patch:
But it's a bit hard coding. I'm not the downstream maintainer, so I might not have time to help you debug this on our end, but I'm ought to tell you.