diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-08-30 10:37:40 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-08-30 19:30:00 -0400 |
commit | 1b1946c4e12647609b0c23e62355ca85afa8db70 (patch) | |
tree | 8732f43afb89aac6934c976988427ede892c4fb7 | |
parent | 8758e1353e93782b38cbea93d6d4c0f84c0614da (diff) | |
download | meson-1b1946c4e12647609b0c23e62355ca85afa8db70.zip meson-1b1946c4e12647609b0c23e62355ca85afa8db70.tar.gz meson-1b1946c4e12647609b0c23e62355ca85afa8db70.tar.bz2 |
Disable failing test on cygwin due to broken cmake
See https://gitlab.kitware.com/cmake/cmake/-/issues/25200.
-rw-r--r-- | test cases/linuxlike/13 cmake dependency/meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test cases/linuxlike/13 cmake dependency/meson.build b/test cases/linuxlike/13 cmake dependency/meson.build index 193ad18..f612e1d 100644 --- a/test cases/linuxlike/13 cmake dependency/meson.build +++ b/test cases/linuxlike/13 cmake dependency/meson.build @@ -2,13 +2,20 @@ # due to use of setup_env.json project('external CMake dependency', ['c', 'cpp']) -if not find_program('cmake', required: false).found() +cmake = find_program('cmake', required: false) +if not cmake.found() error('MESON_SKIP_TEST cmake binary not available.') endif # Zlib is probably on all dev machines. dep = dependency('ZLIB', version : '>=1.2', method : 'cmake') + +if '#define' in dep.version() and cmake.version().version_compare('< 3.27.4') + # ZLIB 1.3 version is broken with those cmake versions + error('MESON_SKIP_TEST known bug in cmake (https://gitlab.kitware.com/cmake/cmake/-/issues/25200)') +endif + exe = executable('zlibprog', 'prog-checkver.c', dependencies : dep, c_args : '-DFOUND_ZLIB="' + dep.version() + '"') |