Daniel Mensinger
b2b9c102b5
cmake: Some minor fixup
5 years ago
Xavier Claessens
f73a1dff0e
cmake: Propagate error when running command
5 years ago
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.
5 years ago
Xavier Claessens
6844ad374e
cmake: Add support for add_dependencies()
...
Closes : #5983
5 years ago
Daniel Mensinger
f2114fa167
cmake: add_custom_command fix empty and quoted parameters
5 years ago
Daniel Mensinger
7e839fc4a9
cmake: Fix confilcting custom targets
5 years ago
Daniel Mensinger
560c4f7f96
cmake: Uniform target name handling
5 years ago
Daniel Mensinger
9435f11b17
ci: Add CI command to include text files in the CI log
5 years ago
Daniel Mensinger
3e1435a968
cmake: Handle CMake system include dirs ( closes #6079 )
5 years ago
Daniel Mensinger
e1fd830070
cmake: Log warnings in CMakeLists.txt
...
Previously, warnings genereated in CMake were not logged because
CMake sends them to stderr alongside the trace information. With
this PR, only real trace lines are send to the trace parser and
all other lines in stderr are logged as warnings.
5 years ago
Wolfgang Stöggl
f037e7ef45
Fix typos found by codespell
...
- Typos were found by codespell v1.16.0
5 years ago
Daniel Mensinger
30a668d0bb
cmake: Blacklist more compiler warning flags
5 years ago
Daniel Mensinger
66e1e1747e
cmake: Do not add imported targets
5 years ago
Daniel Mensinger
902ed589a5
cmake: Add CMake file API support
...
The file API will automatically be used when CMake >= 3.14
is detected. This new API is meant as a replacement for the
now deprecated CMake server API.
The new API (mostly) provides the same information in a
different format. Thus only a slight bit of refactoring was
necessary to implement this new backend
5 years ago
Daniel Mensinger
4ec82040c8
cmake: Comment out unused variables
5 years ago
Daniel Mensinger
b2c89e6f87
cmake: Move CMake API classes to common
5 years ago
Daniel Mensinger
27c01dff01
cmake: Blacklist MS debug flags ( fixes #6021 )
5 years ago
Daniel Mensinger
4185a00057
Revert "cmake: postprocess libraries names with so version"
...
This reverts commit 73f0061498
.
5 years ago
Daniel Mensinger
8103af1d76
cmake: fix detection of libraries with .so version
5 years ago
Xavier Claessens
7d9e58f125
cmake: Add support for normal libraries
...
Without this, set_target_properties() on those libraries won't be
catched, for example when setting the SOVERSION.
5 years ago
Xavier Claessens
90a12ed3f0
cmake: Fix 'properies' typo
5 years ago
Xavier Claessens
a4b0d216b5
cmake: COMMAND could have ';' separated arguments
5 years ago
Xavier Claessens
73f0061498
cmake: postprocess libraries names with so version
5 years ago
Xavier Claessens
7a83668b6b
cmake: Generate declare_dependency() only for libraries
5 years ago
Daniel Mensinger
534e94ffc3
cmake: Support ALIAS libraries
5 years ago
Michael Hirsch, Ph.D
11e34ca7fc
correct logic for too old cmake
5 years ago
Norbert Nemec
1cb6177f03
avoid cmake syntax error due to "\" path separators on windows
5 years ago
Daniel Mensinger
bee74eea16
cmake: Parse a subset of generator expressions
5 years ago
Daniel Mensinger
30c301a48c
cmake: handle interface libraries
5 years ago
Daniel Mensinger
50bbeaf859
cmake: trace: add support for some target_* functions
5 years ago
Daniel Mensinger
1a4fae28ad
cmake: trace: support interface libraries
5 years ago
Daniel Mensinger
e7948508d7
cmake: trace: set_target_properties improved property detection
5 years ago
Daniel Mensinger
5bd21a96b8
cmake: Fix dependencies with try_compile ( closes #5605 )
5 years ago
Daniel Mensinger
8320217210
cmake: Also detect Windows paths
6 years ago
Daniel Mensinger
71a5ff718a
cmake: Skip ARGS key in COMMAND
6 years ago
Daniel Mensinger
5806490219
cmake: Added support for custom_target generation
6 years ago
Daniel Mensinger
98813c1d22
cmake: Added custom target wrapper script
6 years ago
Daniel Mensinger
3fb0e917aa
cmake: Parse trace when configuring CMake
6 years ago
Daniel Mensinger
b07d3804fc
cmake: added suport for add_custom_command in the trace parser
6 years ago
Daniel Mensinger
c78c9ee65e
cmake: Added permissive support to the trace parser
6 years ago
Daniel Mensinger
b1cf0fd380
cmake: Move parsing the CMake trace into the CMake module
6 years ago
Daniel Mensinger
6083cfa6c8
cmake: Moved finding and running CMake out of dependency
6 years ago
John Ericson
07777e15d4
Purge `is_cross` and friends without changing user interfaces
...
In most cases instead pass `for_machine`, the name of the relevant
machines (what compilers target, what targets run on, etc). This allows
us to use the cross code path in the native case, deduplicating the
code.
As one can see, environment got bigger as more information is kept
structured there, while ninjabackend got a smaller. Overall a few amount
of lines were added, but the hope is what's added is a lot simpler than
what's removed.
6 years ago
Daniel Mensinger
69005d6b1d
cmake: Minor fixes to handle some CMake specific behavior
...
Now, all source files are ignored that are not part of the
language of the target. This is also what CMake does.
Additionally it is now supported to build source files that
are generated inside the build directory.
6 years ago
Daniel Mensinger
9a9ea1434a
cmake: Fix cygwin failures
6 years ago
Daniel Mensinger
e02c101575
cmake: moved subprojects into the CMake module
6 years ago
Daniel Mensinger
af6448ced5
cmake: Make flake8 happy
6 years ago
Daniel Mensinger
35936316eb
cmake: rebase fixes
6 years ago
Daniel Mensinger
9b22147dcb
cmake: set the linker for clang-cl for CMake
6 years ago
Daniel Mensinger
29a26c9dbd
cmake: blacklist some `cl` compiler and linker flags
6 years ago