Commit Graph

14 Commits

Author SHA1 Message Date
Antonin Décimo 39ede12aa5 Fix misspells
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
2021-01-13 12:53:10 -05:00
Daniel Mensinger 431f0b0da2 cmake: set CMP0054 to new in preload.cmake
https://cmake.org/cmake/help/latest/policy/CMP0054.html
2020-10-24 19:31:15 +02:00
Daniel Mensinger fc57089bc5 cmake: Disable the new (CMake 3.16) PCH support
Subprojects that use the CMake PCH feature will cause
compilation/linker errors. The CMake PCH support
should thus be disabled until this can be properly
translated to meson.
2020-10-24 19:31:15 +02:00
georgev93 5acd8acd51 Move mesonbuild/cmake/data/run_ctgt.py to mesonbuild/scripts/cmake_run_ctgt.py, as well as enclose everything in a run() function so it can be called by `meson --internal cmake_run_ctgt ...`. Also, include mesonbuild/cmake/data/ in the msi package. 2020-06-30 23:50:10 +03:00
Daniel Mensinger cf4b9e6502 cmake: Do not compile explicit header files 2020-04-17 18:28:40 +03:00
Daniel Mensinger 1be660ff64
cmake: Capture stdout with UNIX pipes 2020-04-12 15:11:54 +02:00
Daniel Mensinger 113ec96626
cmake: Fix relative paths for add_custom_{command,target}
Do this by tracking CMAKE_CURRENT_{SOURCE,BINARY}_DIR variables.
This is achieved by injecting CMake code with CMAKE_PROJECT_INCLUDE
and overriding some builtin functions with a wrapper that adds
additional trace information.
2020-02-20 11:16:37 +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
Daniel Mensinger b2b9c102b5
cmake: Some minor fixup 2019-11-28 11:07:20 +01:00
Xavier Claessens f73a1dff0e
cmake: Propagate error when running command 2019-11-27 21:12:55 +01:00
Xavier Claessens daeee32d9b
cmake: Add support for add_custom_target() with a command
The command could have no output, in which case we create a dummy one.
2019-11-27 21:12:55 +01:00
Daniel Mensinger f2114fa167
cmake: add_custom_command fix empty and quoted parameters 2019-11-20 20:58:38 +01:00
Wolfgang Stöggl f037e7ef45 Fix typos found by codespell
- Typos were found by codespell v1.16.0
2019-11-06 09:55:30 -05:00
Daniel Mensinger 98813c1d22
cmake: Added custom target wrapper script 2019-06-28 13:22:37 +02:00