CMake Error at build/_deps/googletest-src/googlemock/CMakeLists.txt:98 (target_link_libraries):
Attempt to add link library "gtest" to target "gmock" which is not built in
this directory.
This is allowed only when policy CMP0079 is set to NEW.
CMake Error at build/_deps/googletest-src/googletest/cmake/internal_utils.cmake:152 (add_library):
add_library cannot create target "gmock_main" because another target with
the same name already exists. The existing target is a static library
created in source directory "/home/dev/code/premia/src/lib/protobuf". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
build/_deps/googletest-src/googletest/cmake/internal_utils.cmake:205 (cxx_library_with_type)
build/_deps/googletest-src/googlemock/CMakeLists.txt:100 (cxx_library)
CMake Error at build/_deps/googletest-src/googlemock/CMakeLists.txt:101 (target_link_libraries):
The plain signature for target_link_libraries has already been used with
the target "gmock_main". All uses of target_link_libraries with a target
must be either all-keyword or all-plain.
I think the submodules grpc's own cmake files is fighting with the project's own cmake files.