Skip to content

external gtest dependency importing (cmake) #177

Description

@nicktohzyu

CMake expects the targets gtest gtest_main gmock (at cmake/SapiDeps.cmake:48, while externally installed googletest usually exposes these under the GTest namespace, eg as GTest::gtest instead.

Relatedly, set(ABSL_FIND_GOOGLETEST OFF) in cmake/abseil-cpp.cmake makes it hard to use external gtest for the absl subdependency.

Was it intentional to not support external gtest? I've found that one workaround for these is to add aliases for the gtest targetes, and to set ABSL_FIND_GOOGLETEST=ON.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions