ccache: speed up builds, don't build tests (#27567)

This commit is contained in:
Harmen Stoppels 2021-11-22 10:28:05 +01:00 committed by GitHub
parent c167b7d532
commit 3bfd78e6b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,9 @@ class Ccache(CMakePackage):
conflicts('%gcc@:5', when='@4.4:')
conflicts('%clang@:4', when='@4.4:')
def cmake_args(self):
return [self.define('ENABLE_TESTING', False)]
# Before 4.0 this was an Autotools package
@when('@:3')
def cmake(self, spec, prefix):