Skip to content

SHADERC_SKIP_INSTALL cmake option broken #1435

Open

Description

@johnzupin

Running cmake with the SHADERC_SKIP_INSTALL option will break cmake:

...
**CMake Error: install(EXPORT "glslang-targets" ...) includes target "SPIRV" which requires target "SPIRV-Tools-opt" that is not in any export set.**
-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I think the issue is https://github.com/google/shaderc/blob/main/third_party/CMakeLists.txt#L90:

    set(GLSLANG_ENABLE_INSTALL $<NOT:${SKIP_GLSLANG_INSTALL}>)

I don't believe that "$<NOT" generator expression works during cmake's configure time, only at cmake's generation time.

Activity

  1. wk1093 commented on Apr 12, 2025

    @wk1093
  2. Alayan-stk-2 commented on Jul 7, 2026

    @Alayan-stk-2

    Stunning that the bug has not been fixed yet despite the simplicity of the fix and the provided PR.

  3. KarenGhavam-lunarG commented on Oct 29, 2026

    @KarenGhavam-lunarG

    @dneto0 What is the chance we could get this fixed soon? We have to manually apply a patch for our SDK build to avoid this issue. Would be nice to get rid of that manual step.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions