Disable failing test on cygwin due to broken cmake

See https://gitlab.kitware.com/cmake/cmake/-/issues/25200.
This commit is contained in:
Charles Brunet 2023-08-30 10:37:40 -04:00 committed by Eli Schwartz
parent 8758e1353e
commit 1b1946c4e1
1 changed files with 8 additions and 1 deletions

View File

@ -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() + '"')