aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
AgeCommit message (Collapse)AuthorFilesLines
2020-10-24cmake: Disable the new (CMake 3.16) PCH supportDaniel Mensinger2-0/+8
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 Mensinger1-1/+2
2020-10-13cmake: Add cross testsDaniel Mensinger14-7/+35
2020-10-04cmake: switch to pathlib (fixes #7322)Daniel Mensinger2-4/+2
2020-09-10Split tests out from 'common' which require a native compilerJon Turney4-0/+45
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 Mensinger6-0/+246
2020-08-30CMake module: Allow paths of generated CMake sources for include directoriesSebastian Würl3-2/+13
2020-08-09cmake: Detect custom command targets in compiler argsDaniel Mensinger3-0/+19
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 Mensinger1-1/+1
2020-08-03cmake: Only run the cmake_module_path test for CMake >= 3.12Daniel Mensinger2-16/+6
2020-08-03cmake: resolve IMPORTED executables in custom commands (fixes #7509)Daniel Mensinger3-1/+33
2020-08-01run dircondensor.pyDylan Baker3-0/+0
2020-07-01Merge pull request #7231 from mensinda/cmOverrideJussi Pakkanen9-0/+156
cmake: Add more advanced subproject configuration options
2020-06-17ci: Remove PostgreSQL from PATHNirbheek Chauhan2-12/+0
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 Mensinger4-14/+12
See also #7307 #7314 #7316 cc @nirbheek
2020-06-14Disable failing cmake jobs on VS2017Nirbheek Chauhan2-0/+14
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 Mensinger6-0/+22
2020-06-12modules/cmake: Fix setting install_dirDylan Baker3-0/+20
Fixes: #7301
2020-06-12cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249)Daniel Mensinger2-0/+14
2020-06-05cmake: Skip MSVC like compilers, since C++11 is not supportedDaniel Mensinger1-0/+5
2020-06-05cmake: added test caseDaniel Mensinger9-0/+151
2020-06-02cmake: always split property lists (fixes #7228)Daniel Mensinger1-1/+1
2020-04-28tests: Add support for specifying tool requirementsDaniel Mensinger2-2/+8
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.
2020-04-17cmake: Do not compile explicit header filesDaniel Mensinger10-0/+118
2020-04-12Merge pull request #6963 from mensinda/cmFixCCmdJussi Pakkanen2-0/+19
cmake: some fixes for add_custom_command
2020-04-12cmake: Preserve include directory order (fixes #6959)Daniel Mensinger19-0/+134
2020-04-12cmake: Capture stdout with UNIX pipesDaniel Mensinger2-0/+13
2020-04-12cmake: Fix custom command CMake list issueDaniel Mensinger1-0/+6
2020-03-29cmake: Only expand executable targets in COMMAND (fixes #6857)Daniel Mensinger1-0/+4
2020-03-08cmake: Fix build_by_default: false, install: true (fixes #6737)Daniel Mensinger2-2/+6
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger4-10/+18
2020-02-25test: merge test_matrix.json and setup_env.json into test.jsonDaniel Mensinger2-9/+11
2020-02-20cmake: Fix relative paths for add_custom_{command,target}Daniel Mensinger4-2/+15
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-19cmake: traceparser better handle listsDaniel Mensinger1-2/+2
2020-02-19cmake: Fix dependency loops in custom targets (fixes #6632)Daniel Mensinger6-3/+42
2020-02-19modules/cmake: Add a found() method to the cmake subprojectDylan Baker2-1/+3
Just like the native meson subproject has.
2020-02-05cmake: Added test case for #6566Daniel Mensinger5-5/+36
2020-02-04cmake: Sanitize CMake names (fixes #6554)Daniel Mensinger3-12/+13
2020-01-24tests: Fix some test failures on Ubuntun 16.04 CINirbheek Chauhan2-0/+2
* xenial doesn't ship many dependencies, so make them all optional since we don't guarantee that everything will work * cmake/{5,6}: needs stdlib.h for EXIT_SUCCESS on GCC 5 * common/222: needs C++11, and GCC 5 doesn't understand `auto` correctly unless we explicitly enable it. * frameworks/1 boost: xenial doesn't ship boost_python3, so make it properly optional * frameworks/6 gettext: gettext can be installed without xgettext, which doesn't cause the project to fail, but the installed files list is different which causes the test to fail. * frameworks/7 gnome: gobject-introspection can't be enabled because the sanitizer unit test detects leaks in glib and fails
2019-12-29cmake: Use trace for missing link flags (fixes #6386)Daniel Mensinger10-5/+78
This is neccessary for static libraries, since the CMake file API does not add link flags here.
2019-12-22cmake: Fix obeject librariesDaniel Mensinger14-15/+169
This fixes an issue with generated sources and object libraries, as well as an issue on windows with the `link` linker and the vs backend. The last issue is resolved by building the source files multiple times to avoid extracting object files in meson.
2019-12-17ci cmake: Windows link.exe skip due to symbol issuesMichael Hirsch, Ph.D10-12/+16
2019-12-09cmake test: skip case where Cmake backend not Fortran-compatibleMichael Hirsch, Ph.D1-1/+4
2019-12-09cmake: add project language to cmakelists.txtMichael Hirsch, Ph.D1-0/+9
cmake: get language from Meson project if not specified as depedency(..., langugage: ...) deps: add threads method:cmake dependency('threads', method: 'cmake') is useful for cmake unit tests or those who just want to find threads using cmake. cmake: project(... Fortran) generally also requires C language
2019-11-30cmake: Make output_target_map more robust (fixes #6208)Daniel Mensinger5-2/+65
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-28cmake: Some minor fixupDaniel Mensinger3-1/+20
2019-11-27cmake: Add unit test for add_custom_target() and add_dependency()Xavier Claessens3-0/+32
Also test commands with args separated by ';'
2019-11-20cmake: Uniform target name handlingDaniel Mensinger4-10/+12
2019-11-19cmake: Skip system include dir test for msvcDaniel Mensinger1-0/+4
2019-11-19cmake: Handle CMake system include dirs (closes #6079)Daniel Mensinger1-1/+1