Skip to content

[cmake] Expose clang resource dir to installed CMake #95747

Closed
@kimgr

Description

@kimgr

In IWYU's build, we guess Clang's resource dir based on the CMAKE_PREFIX_PATH, so we can collect the builtin/resource headers for our own build tree. Unfotunately, depending on packaging/platform, the path to the resource dir varies quite a bit.

Is there any chance to expose something like CLANG_RESOURCE_DIR in ClangConfig.cmake?

It's not fully clear to me what the layering looks like there, but it feels like it should be possible.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other categorycmakeBuild system in general and CMake in particular

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions