Skip to content

cmake ninjas generator reports multiple rules generate lib/zstd.lib #4513

@solomoncyj

Description

@solomoncyj

To Reproduce
clone the repo
cd build/cmake
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX='C:\' -DCMAKE_SKIP_INSTALL_RPATH:BOOL=1 -G Ninja -DBUILD_SHARED_LIBS=1
cmake --build build
ninja: error: build.ninja:923: multiple rules generate lib/zstd.lib error is emmited

Expected behavior
builds correctly

Screenshots and charts
If applicable, add screenshots and charts to help explain your problem.

Desktop (please complete the following information):

  • OS: windows
  • Version 6e58e9a
  • Compiler clang 21
  • Flags all bulit in flags + -march=native -flto=thin
  • Build system ninja

Additional context
Add any other context about the problem here.

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