move source dir to last cmake arg (#16709)
This commit is contained in:
parent
cf4c48c37e
commit
84889ef3a3
@ -331,9 +331,9 @@ def cmake_args(self):
|
|||||||
|
|
||||||
def cmake(self, spec, prefix):
|
def cmake(self, spec, prefix):
|
||||||
"""Runs ``cmake`` in the build directory"""
|
"""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 += self.cmake_args()
|
||||||
|
options.append(os.path.abspath(self.root_cmakelists_dir))
|
||||||
with working_dir(self.build_directory, create=True):
|
with working_dir(self.build_directory, create=True):
|
||||||
inspect.getmodule(self).cmake(*options)
|
inspect.getmodule(self).cmake(*options)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user