From 84889ef3a3a553171ef6418f4f5f4b22420e7749 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Mon, 18 May 2020 16:39:13 -0700 Subject: move source dir to last cmake arg (#16709) --- lib/spack/spack/build_systems/cmake.py | 4 ++-- 1 file 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) -- cgit v1.2.3-70-g09d2