The main branch of mockcpp does not build against the latest version of googletest (v1.13 onwards) when specifying gtest as the unit test framework. The build fails when building ports/failure/gtest_report_failure.cpp.o because the included gtest.h forces an error with a message about the compiler being required to support C++14.
This was seen on Windows, using both cygwin and WSL Ubuntu.
This error occurs because the mockcpp build enforces c++11 compilation. The relevant code is in src/CMakeLists.txt::83:
When the -std flag is removed, the latest version of googletest builds without problem.
Presumably the enforcing -std flag is there for a reason, but can it be either removed completely, or removed for gtest dependency?
The main branch of mockcpp does not build against the latest version of googletest (v1.13 onwards) when specifying gtest as the unit test framework. The build fails when building
ports/failure/gtest_report_failure.cpp.o
because the included gtest.h forces an error with a message about the compiler being required to support C++14.This was seen on Windows, using both cygwin and WSL Ubuntu.
This error occurs because the mockcpp build enforces c++11 compilation. The relevant code is in
src/CMakeLists.txt::83
:When the -std flag is removed, the latest version of googletest builds without problem. Presumably the enforcing -std flag is there for a reason, but can it be either removed completely, or removed for gtest dependency?