summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-05-18 16:39:13 -0700
committerGitHub <noreply@github.com>2020-05-18 16:39:13 -0700
commit84889ef3a3a553171ef6418f4f5f4b22420e7749 (patch)
treee42653621b00d2d5186f83a63ed0cfc0c3d2b41d /lib
parentcf4c48c37e4a25bc0de4249c3266c99abb1aa1fc (diff)
downloadspack-84889ef3a3a553171ef6418f4f5f4b22420e7749.tar.gz
spack-84889ef3a3a553171ef6418f4f5f4b22420e7749.tar.bz2
spack-84889ef3a3a553171ef6418f4f5f4b22420e7749.tar.xz
spack-84889ef3a3a553171ef6418f4f5f4b22420e7749.zip
move source dir to last cmake arg (#16709)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/cmake.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py
index d7da957a9d..dfa2c9e47a 100644
--- a/lib/spack/spack/build_systems/cmake.py
+++ b/lib/spack/spack/build_systems/cmake.py
@@ -331,9 +331,9 @@ class CMakePackage(PackageBase):
def cmake(self, spec, prefix):
"""Runs ``cmake`` in the build directory"""
- options = [os.path.abspath(self.root_cmakelists_dir)]
- options += self.std_cmake_args
+ options = self.std_cmake_args
options += self.cmake_args()
+ options.append(os.path.abspath(self.root_cmakelists_dir))
with working_dir(self.build_directory, create=True):
inspect.getmodule(self).cmake(*options)