summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2021-09-18 19:34:43 -0400
committerGitHub <noreply@github.com>2021-09-18 17:34:43 -0600
commit6ff5795342d53f02413364e9f04e47ef2e501e1f (patch)
treedfeec5ed352bca83e3f5863ed7b87c9c3c2a6e5e /var
parent60f0d0ac20b08c8eec8083e6a833fbebfdf39497 (diff)
downloadspack-6ff5795342d53f02413364e9f04e47ef2e501e1f.tar.gz
spack-6ff5795342d53f02413364e9f04e47ef2e501e1f.tar.bz2
spack-6ff5795342d53f02413364e9f04e47ef2e501e1f.tar.xz
spack-6ff5795342d53f02413364e9f04e47ef2e501e1f.zip
cmake: allow gcc on macOS for newer versions (#25994)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cmake/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py
index 8b3b42932b..80b573e065 100644
--- a/var/spack/repos/builtin/packages/cmake/package.py
+++ b/var/spack/repos/builtin/packages/cmake/package.py
@@ -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