google / google/sandboxed-api

Fedora: cannot build jsonnet

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.8k
Forks
200
Avg merge
12d 2h
Merged PRs (30d)
1

Description

CMake Error at build/_deps/jsonnet-build/googletest-src/googletest/cmake/internal_utils.cmake:152 (add_library):

add_library cannot create target "gtest" because another target with the
same name already exists. The existing target is a static library created
in source directory
"/home/user/sandboxed-api/build/_deps/googletest-src/googletest". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
build/_deps/jsonnet-build/googletest-src/googletest/cmake/internal_utils.cmake:209 (cxx_library_with_type)
build/_deps/jsonnet-build/googletest-src/googletest/CMakeLists.txt:131 (cxx_library)

CMake Error at build/_deps/jsonnet-build/googletest-src/googletest/cmake/internal_utils.cmake:152 (add_library):
add_library cannot create target "gtest_main" because another target with
the same name already exists. The existing target is a static library
created in source directory
"/home/user/sandboxed-api/build/_deps/googletest-src/googletest". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
build/_deps/jsonnet-build/googletest-src/googletest/cmake/internal_utils.cmake:209 (cxx_library_with_type)
build/_deps/jsonnet-build/googletest-src/googletest/CMakeLists.txt:133 (cxx_library)

CMake Error at build/_deps/jsonnet-build/googletest-src/googletest/CMakeLists.txt:146 (target_link_libraries):
Attempt to add link library "gtest" to target "gtest_main" which is not
built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

CMake Error at build/_deps/jsonnet-build/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/user/sandboxed-api/build/_deps/googletest-src/googlemock". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
build/_deps/jsonnet-build/googletest-src/googletest/cmake/internal_utils.cmake:209 (cxx_library_with_type)
build/_deps/jsonnet-build/googletest-src/googlemock/CMakeLists.txt:101 (cxx_library)

CMake Error at build/_deps/jsonnet-build/googletest-src/googlemock/CMakeLists.txt:102 (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/jsonnet-build/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/user/sandboxed-api/build/_deps/googletest-src/googlemock". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
build/_deps/jsonnet-build/googletest-src/googletest/cmake/internal_utils.cmake:209 (cxx_library_with_type)
build/_deps/jsonnet-build/googletest-src/googlemock/CMakeLists.txt:104 (cxx_library)

CMake Error at build/_deps/jsonnet-build/googletest-src/googlemock/CMakeLists.txt:105 (target_link_libraries):
Attempt to add link library "gmock" to target "gmock_main" which is not
built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.