Skip to content

[Bug]: Target "absl_strings" links to itself. #2091

Description

@malytomas

Describe the issue

CMake Error at externals/cage/externals/dawn/dawn/third_party/abseil-cpp/CMake/AbseilHelpers.cmake:259 (add_li
brary):
  Target "absl_strings" links to itself.
Call Stack (most recent call first):
  externals/cage/externals/dawn/dawn/third_party/abseil-cpp/absl/strings/CMakeLists.txt:31 (absl_cc_library)

Steps to reproduce the problem

The absl::strings is literally listed in the DEPS of the absl_cc_library. I am not sure which of my configurations is making this issue surface, but the strings is the only one with this issue, and commenting it in the DEPS fixes it.

set(ABSL_PROPAGATE_CXX_STD OFF CACHE INTERNAL "Use CMake C++ standard meta features (e.g. cxx_std_17) that propagate to targets that link to Abseil")
set(ABSL_USE_SYSTEM_INCLUDES ON CACHE INTERNAL "Silence warnings in Abseil headers by marking them as SYSTEM includes")

I know i have these two changes. I may hove some more changes elsewhere that i am not finding now.

What version of Abseil are you using?

d8e483edd8b44da1845874ee84b42489589bb90f

What operating system and version are you using?

windows 10

What compiler and version are you using?

msvc 2022

What build system are you using?

cmake version 4.2.1

Additional context

i am building dawn as a submodule in graphics engine. Dawn uses abseil internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions