forked from DFHack/dfhack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run once codegen.pl and git-describe.cmake with make
ninja has a single build file which avoided issues if multiple targets depend on same files. But Unix Makefiles generator user recursive make which requires each ADD_CUSTOM_COMMAND to have only one target depending on them. Then makefile generator also has stupid rule that it touches all secundary output files if primary file has been updated. It was surprising hard to find a version that actually works correctly for both issues. Solution is using BYPRODUCTS and refactoring command and target dependencies. As a bonus this change now allows build to work from source tarball if the tarball includes git-describe.h.
- Loading branch information
Showing
2 changed files
with
23 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters