cmake: allow gcc on macOS for newer versions (#25994)

This commit is contained in:
Seth R. Johnson 2021-09-18 19:34:43 -04:00 committed by GitHub
parent 60f0d0ac20
commit 6ff5795342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,12 +145,11 @@ class Cmake(Package):
variant('openssl', default=True, description="Enable openssl for curl bootstrapped by CMake when using +ownlibs")
variant('ncurses', default=True, description='Enables the build of the ncurses gui')
# Does not compile and is not covered in upstream CI (yet).
conflicts('%gcc platform=darwin',
msg='CMake does not compile with GCC on macOS yet, '
'please use %apple-clang. '
# See https://gitlab.kitware.com/cmake/cmake/-/issues/21135
conflicts('%gcc platform=darwin', when='@:3.17',
msg='CMake <3.18 does not compile with GCC on macOS, '
'please use %apple-clang or a newer CMake release. '
'See: https://gitlab.kitware.com/cmake/cmake/-/issues/21135')
conflicts('%nvhpc')
# Really this should conflict since it's enabling or disabling openssl for