summaryrefslogtreecommitdiff
path: root/test cases/cmake
AgeCommit message (Collapse)Author
2025-12-10cmake: Fix version kwarg being added to static_library targetsRobotLeopard86
2025-08-26Set version, soversion from cmake if availableJulianne Swinoga
2025-05-05test casees: add test for cmake_proj.include_directoriesPaolo Bonzini
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-04-05cmake/interpreter: Don't add __CMake_build to includesTomi Lähteenmäki
Don't add "<project_source_dir>/<subproject>/__CMake_build" directory to include directories. Fixes #12351
2024-10-11test: avoid need for explict CMake minimumscivision
This mitigates maintenance burden as CMake minimum version isn't relevant for these tests. CMake >= 3.31 warns if CMake minimum version is less than 3.10. ref: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9875
2024-08-08Fix compiling ObjC/ObjC++ on Windows/MinGWJonathan Schleifer
Co-Authored-By: L. E. Segovia <amy@amyspark.me>
2024-07-15tests: short-circuit tests that require cmake, fasterEli Schwartz
We have two ways of marking a test as skipped: - raise MESON_SKIP_TEST - declare that the tools it needs in test.json are unavailable Doing the former requires performing the configure stage including e.g. language setup. In several cases we weren't even getting this far anyway since we used both mechanisms (the cmake category has a category-wide skip for this, in fact). In some case, we were missing test.json declaring it skippable; add this.
2024-07-15tests: Extend cmake test with -Wl,--version-scriptJonathon Anderson
This tests that CMake link flags marked as PRIVATE are not propagated through the generated Meson dependency. -Wl,--version-script is used as the "poison" here, the build ultimately fails if it appears in the shared_library() link command.
2024-04-28Prefer Clang over GCC for Objective-C(++)Jonathan Schleifer
GCC only has very limited support for Objective-C and doesn't support any of the modern features, so whenever Clang is available, it should be used instead. Essentially, the only reason to ever use GCC for Objective-C is that Clang simply does not support the target system.
2024-01-16cmake: Fix blunt target filtering skipping GENERATED dependenciesL. E. Segovia
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
2023-12-12cmake: parse project versionNicolas Werner
This properly sets the project version in projects meson generates from cmake projects. This allows dependency fallbacks to properly check the version constraints in dependency calls when falling back to a cmake subproject. Before this would fail, because the project version was undefined.
2023-10-27Condense test directories for RC1.Jussi Pakkanen
2023-10-09interpreter: Add support for cargo subprojectXavier Claessens
2023-09-22Allow to fallback to cmake subprojectXavier Claessens
The method can be overridden by setting the `method` key in the wrap file and always defaults to 'meson'. cmake.subproject() is still needed in case specific cmake options need to be passed. This also makes it easier to extend to other methods in the future e.g. cargo.
2023-07-13cmake: fix directory separators in generated packageConfig.cmake filesMatthieu Rogez
On windows, meson would mix posix and windows dir separators in the computed PACKAGE_RELATIVE_PATH. Here we force posix directory separator even on Windows. This matches the CMake behavior and fixes interpretation of the resulting path. Fixes #6955 Fixes #9702
2023-04-11fix various spelling issuesJosh Soref
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-08-10cmake: Add rule relaxations for CMake subprojectsDaniel Mensinger
fixes #10566
2022-05-24cmake: Add test caseDaniel Mensinger
2022-05-10Require CMake 3.14 for all tests that use the cmake moduleSimon McVittie
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>
2022-04-01Fix CMake error messageDaniel Mensinger
2022-03-07Merge pull request #9743 from mensinda/cmakeGeneratorFixedJussi Pakkanen
cmake: Add TARGET_ generator expression support (fixes #9305)
2022-02-27cmake: configure_package_config_file can now take a dictAndrea Pappacoda
2022-01-23cmake: require CMake 3.19 to get rid of Whitelist restrictionsDaniel Mensinger
2022-01-23cmake: Add TARGET_ generator expression support (fixes #9305)Daniel Mensinger
2021-10-10Fix typos discovered by codespellChristian Clauss
2021-07-05cmake: Only use the `cm_` prefix when it is actually required (fixes #8955)Daniel Mensinger
2021-06-22Fixed unused-parameter/strict-prototypes warnings.Justin Handville
2021-06-22Added test case to test fix for issue 8910.Justin Handville
2021-05-29cmake: Update test caseDaniel Mensinger
2021-02-05tests/cmake: disable some tests that don't work correctly when cross compilingDylan Baker
2021-01-04cmake: fix missing languages from CMake (fixes #8132)Daniel Mensinger
2020-12-29cmake: fix -framework dependencies (fixes #8045)Daniel Mensinger
2020-10-24cmake: Disable the new (CMake 3.16) PCH supportDaniel Mensinger
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-13include_type: Add CMake subporject dependency method (fixes #6879)Daniel Mensinger
2020-10-13cmake: Add cross testsDaniel Mensinger
2020-10-04cmake: switch to pathlib (fixes #7322)Daniel Mensinger
2020-09-10Split tests out from 'common' which require a native compilerJon Turney
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.
2020-09-10cmake: fix shared_module dependency (fixes #7715)Daniel Mensinger
2020-08-30CMake module: Allow paths of generated CMake sources for include directoriesSebastian Würl
2020-08-09cmake: Detect custom command targets in compiler argsDaniel Mensinger
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.
2020-08-06cmake: Fix failing test case. Followup to #7527.Daniel Mensinger
2020-08-03cmake: Only run the cmake_module_path test for CMake >= 3.12Daniel Mensinger
2020-08-03cmake: resolve IMPORTED executables in custom commands (fixes #7509)Daniel Mensinger
2020-08-01run dircondensor.pyDylan Baker
2020-07-01Merge pull request #7231 from mensinda/cmOverrideJussi Pakkanen
cmake: Add more advanced subproject configuration options
2020-06-17ci: Remove PostgreSQL from PATHNirbheek Chauhan
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.
2020-06-15ci: Use test.json to skip VS2017 azure testsDaniel Mensinger
See also #7307 #7314 #7316 cc @nirbheek
2020-06-14Disable failing cmake jobs on VS2017Nirbheek Chauhan
These only fail when building with msvc/clang-cl on the VS2017-Win2016 image. See: https://github.com/mesonbuild/meson/issues/7307
2020-06-13cmake: fix definitions with interface libraries (fixes #7299)Daniel Mensinger
2020-06-12modules/cmake: Fix setting install_dirDylan Baker
Fixes: #7301