For some reason now there's some issue when passing the version string
to pkg_check_modules with spaces inbetween which breaks setting a bunch
of used variables.
pkg_check_modules(GTEST "gtest >= 1.8.0")
-- Checking for module 'gtest >= 1.8.0'
-- Found gtest , version
vs.
pkg_check_modules(GTEST "gtest>=1.8.0")
-- Checking for module 'gtest>=1.8.0'
-- Found gtest, version 1.14.0
Appears some weird combination of compiler flags from protobuf and
abseil-cpp makes compile fail when using c++ standard lower than c++17
In file included from /usr/include/google/protobuf/stubs/common.h:44, from /home/pmos/build/src/mir-1.8.2/src/protobuf/google_protobuf_guard.cpp:19:
/usr/include/absl/strings/string_view.h:52:26: error: 'string_view' in namespace 'std' does not name a type
52 | using string_view = std::string_view;
| ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:52:21: note: 'std::string_view' is only available from C++17 onwards
52 | using string_view = std::string_view;
| ^~~