Commit Graph

6 Commits

Author SHA1 Message Date
L. E. Segovia 9797f7682b cmake: Fix blunt target filtering skipping GENERATED dependencies
GENERATED files can be used as dependencies for other targets, so it's
misguided (at best) to filter them with a blunt whitelist.

However, there does exist an extension that needs to be skipped: on Windows +
MSVC, CMake will by default try to generate a Visual Studio project, and
there dependencies with no inputs are instead tied to a dummy .rule
input file which is created by the generation step. The fileapi will
still report those, so it will cause Meson to bail out when it realises
there's no such file in the build tree.

Fixes #11607
2024-01-16 11:00:26 -08:00
Christian Clauss a5020857f3 Fix typos discovered by codespell 2021-10-10 16:12:25 -04:00
Daniel Mensinger 4ec6918cd5
cmake: Fix dependency loops in custom targets (fixes #6632) 2020-02-19 11:52:22 +01:00
Daniel Mensinger 36749a1625 cmake: Make output_target_map more robust (fixes #6208)
This PR refactors the old output_target_map, which was a
raw dict, into it's own class. This makes the access to
the map more uniform and robust (at the cost of more lines
of code).

Additionally relative paths to the build directory are
now also tracked for outputs. This is neccessary to
corretcly distingluish files with the same name, that are
in different directories.
2019-11-30 22:00:18 +02:00
Xavier Claessens 8efbcb1e80
cmake: Add unit test for add_custom_target() and add_dependency()
Also test commands with args separated by ';'
2019-11-27 21:12:55 +01:00
Daniel Mensinger 647d80f34c
cmake: Added custom_target test case 2019-06-28 13:22:38 +02:00