You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
CMake Error at build/_deps/googletest-src/googletest/cmake/internal_utils.cmake:152 (add_library): add_library cannot create target "gmock" because another target with the same name already exists. The existing target is a static library created in source directory "/home/barnix/cpp/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:97 (cxx_library)
Ubuntu 22.04
I think the submodules grpc's own cmake files is fighting with the project's own cmake files.
The text was updated successfully, but these errors were encountered: