Daniel Mensinger
ca40dda146
cmake: Add rule relaxations for CMake subprojects
...
fixes #10566
2 years ago
Daniel Mensinger
35b3522065
cmake: Add test case
3 years ago
Simon McVittie
65ea833d58
Require CMake 3.14 for all tests that use the cmake module
...
Older versions are not supported by the cmake module since 0.62.
This avoids having to hard-code the linux-bionic-gcc CI job as being
unable to run these tests, which leaves other older environments like
Debian 10 still trying to run them (and failing).
Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years ago
Daniel Mensinger
2c4c7f6e64
Fix CMake error message
3 years ago
Andrea Pappacoda
fcca265035
cmake: configure_package_config_file can now take a dict
3 years ago
Daniel Mensinger
7ab2ceb273
cmake: require CMake 3.19 to get rid of Whitelist restrictions
3 years ago
Daniel Mensinger
42843c4cf6
cmake: Add TARGET_ generator expression support ( fixes #9305 )
3 years ago
Christian Clauss
a5020857f3
Fix typos discovered by codespell
3 years ago
Daniel Mensinger
0d0f2cdafd
cmake: Only use the `cm_` prefix when it is actually required ( fixes #8955 )
3 years ago
Justin Handville
5650c9b769
Fixed unused-parameter/strict-prototypes warnings.
3 years ago
Justin Handville
ee240b60b8
Added test case to test fix for issue 8910.
3 years ago
Daniel Mensinger
06f528a5b7
cmake: Update test case
4 years ago
Dylan Baker
0d0c6ede9b
tests/cmake: disable some tests that don't work correctly when cross compiling
4 years ago
Daniel Mensinger
6b515c4321
cmake: fix missing languages from CMake ( fixes #8132 )
4 years ago
Daniel Mensinger
5cbc8f866c
cmake: fix -framework dependencies ( fixes #8045 )
4 years ago
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.
4 years ago
Daniel Mensinger
e36f713a7f
include_type: Add CMake subporject dependency method ( fixes #6879 )
4 years ago
Daniel Mensinger
b27af7e465
cmake: Add cross tests
4 years ago
Daniel Mensinger
77b5c82d07
cmake: switch to pathlib ( fixes #7322 )
4 years ago
Jon Turney
88e13c5f7c
Split tests out from 'common' which require a native compiler
...
Split out tests (and parts of tests) which require a native compiler
from the 'common' suite to a new suite called 'native', so we can
selectively avoid running those tests when only a cross-compiler is
available.
Also move test '211 cmake module' to 'cmake' suite, since it appears
that the way we use cmake requires a native compiler.
4 years ago
Daniel Mensinger
4cef45af21
cmake: fix shared_module dependency ( fixes #7715 )
4 years ago
Sebastian Würl
8e004afc90
CMake module: Allow paths of generated CMake sources for include directories
4 years ago
Daniel Mensinger
a98db022aa
cmake: Detect custom command targets in compiler args
...
This is required to make `-include /path/to/custom/target.hpp`
work. This setup is used by wxWidgets and this PR is
required to use wxWidgets as a CMake subproject.
4 years ago
Daniel Mensinger
e5fabce1f3
cmake: Fix failing test case. Followup to #7527 .
4 years ago
Daniel Mensinger
f16149cc49
cmake: Only run the cmake_module_path test for CMake >= 3.12
4 years ago
Daniel Mensinger
1c1ec9ff11
cmake: resolve IMPORTED executables in custom commands ( fixes #7509 )
4 years ago
Dylan Baker
4d2a17041f
run dircondensor.py
4 years ago
Nirbheek Chauhan
804cefc94c
ci: Remove PostgreSQL from PATH
...
It's one of the causes of the cmake test failures, and it's also
plaguing the VS2019 jobs now because of the image update.
5 years ago
Daniel Mensinger
a44dc67cb7
ci: Use test.json to skip VS2017 azure tests
...
See also #7307 #7314 #7316
cc @nirbheek
5 years ago
Nirbheek Chauhan
e121942fcd
Disable failing cmake jobs on VS2017
...
These only fail when building with msvc/clang-cl on the VS2017-Win2016
image. See: https://github.com/mesonbuild/meson/issues/7307
5 years ago
Daniel Mensinger
6c56478ee1
cmake: fix definitions with interface libraries ( fixes #7299 )
5 years ago
Dylan Baker
49a974213c
modules/cmake: Fix setting install_dir
...
Fixes : #7301
5 years ago
Daniel Mensinger
0332d7e350
cmake: Subprojects support CMAKE_PREFIX_PATH ( fixes #7249 )
5 years ago
Daniel Mensinger
0e98a7679a
cmake: Skip MSVC like compilers, since C++11 is not supported
5 years ago
Daniel Mensinger
08e838a235
cmake: added test case
5 years ago
Daniel Mensinger
a252a17e6e
cmake: always split property lists ( fixes #7228 )
5 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Daniel Mensinger
4a1f197743
tests: Add support for specifying tool requirements
...
Adds the `tools` section to `tests.json` to specify requirements
for the tools in the environment. All tests that fail at least
one tool requirements check are skipped.
5 years ago
Daniel Mensinger
cf4b9e6502
cmake: Do not compile explicit header files
5 years ago
Daniel Mensinger
fa1bb2a676
cmake: Preserve include directory order ( fixes #6959 )
5 years ago
Daniel Mensinger
1be660ff64
cmake: Capture stdout with UNIX pipes
5 years ago
Daniel Mensinger
4199cb32a5
cmake: Fix custom command CMake list issue
5 years ago
Daniel Mensinger
95e7477d12
cmake: Only expand executable targets in COMMAND ( fixes #6857 )
5 years ago
Daniel Mensinger
91976a3489
cmake: Fix build_by_default: false, install: true ( fixes #6737 )
5 years ago
Daniel Mensinger
8e60b8c146
test: merge installed_files.txt into test.json
5 years ago
Daniel Mensinger
efd4e2a15b
test: merge test_matrix.json and setup_env.json into test.json
5 years ago
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.
5 years ago
Daniel Mensinger
31eb41ec2f
cmake: traceparser better handle lists
5 years ago
Daniel Mensinger
4ec6918cd5
cmake: Fix dependency loops in custom targets ( fixes #6632 )
5 years ago
Dylan Baker
73ddc01477
modules/cmake: Add a found() method to the cmake subproject
...
Just like the native meson subproject has.
5 years ago