summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-01-15 11:34:15 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-15 02:34:15 -0800
commit436f6a4ab65943645c68f82691c9ccd234c43d51 (patch)
tree99a2ea3fe98ac264cde69d7f02c7ca05271c712c /var
parent957cb968c619e32fc764babb8dc8ed977b42c789 (diff)
downloadspack-436f6a4ab65943645c68f82691c9ccd234c43d51.tar.gz
spack-436f6a4ab65943645c68f82691c9ccd234c43d51.tar.bz2
spack-436f6a4ab65943645c68f82691c9ccd234c43d51.tar.xz
spack-436f6a4ab65943645c68f82691c9ccd234c43d51.zip
get_std_cmake_args delegates to CMakePackage._std_args fixes #2665 (#2805)
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