facebook / facebook/zstd

cmake ninjas generator reports `multiple rules generate lib/zstd.lib`

Open
#4,513 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

**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 6e58e9a2c42ea344708b72a14052b3bd4581e118
- 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.