CROW_AMALGAMATE fails with CMake Ninja generator
envgap__CrowCpp__Crow-865
01 / FAILURE SIGNATURE
As reported upstream
ninja: error: '<...>/Crow/include/*.h', needed by 'crow_all.h', missing and no known rule to make it
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
18cfb3496cf18d2b58a65caa9ea47e330fdacccd- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
CrowCpp/Crow #865 · read the original issue
When trying to build with `CROW_AMALGAMATE=ON` and `-G Ninja`the ``` ninja: error: '<...>/Crow/include/*.h', needed by 'crow_all.h', missing and no known rule to make it ``` error is produced for me on CMake 3.30.2 Seems like globbing is not explicitly supported in `DEPENDS` argument of `add_custom_command` and it just happens to work with the Makefile generator. As a solution, it is possible to use globbing via https://cmake.org/cmake/help/latest/command/file.html#glob. It is not the recommended way, but would probably work no worse than the current approach - the recommended way is to spell all of the dependencies explicitly. I can make a pull request with either fix if you are interested. Full configure command for reference: ``` /usr/bin/cmake -DCROW_AMALGAMATE=ON -S. -Bbuild -G Ninja ```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]