summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/cmake-client/package.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/var/spack/repos/builtin.mock/packages/cmake-client/package.py b/var/spack/repos/builtin.mock/packages/cmake-client/package.py
index 0c78f0bf68..51704e3f4b 100644
--- a/var/spack/repos/builtin.mock/packages/cmake-client/package.py
+++ b/var/spack/repos/builtin.mock/packages/cmake-client/package.py
@@ -32,15 +32,13 @@ def check(condition, msg):
raise InstallError(msg)
-class CmakeClient(Package):
+class CmakeClient(CMakePackage):
"""A dumy package that uses cmake."""
homepage = 'https://www.example.com'
url = 'https://www.example.com/cmake-client-1.0.tar.gz'
version('1.0', '4cb3ff35b2472aae70f542116d616e63')
- depends_on('cmake', type='build')
-
def setup_environment(self, spack_env, run_env):
spack_cc # Ensure spack module-scope variable is avaiabl
check(from_cmake == "from_cmake",
@@ -68,6 +66,11 @@ class CmakeClient(Package):
"link arg on dependency spec not readable from "
"setup_dependent_package.")
+ def cmake(self, spec, prefix):
+ pass
+
+ build = cmake
+
def install(self, spec, prefix):
# check that cmake is in the global scope.
global cmake