Make sure MPI_DIR and PETSC_DIR are passed when running CMake from run_tests.py

This commit is contained in:
Paul Romano 2015-04-15 15:00:14 -05:00
parent 5996f2f5c2
commit 500fea92cc

View file

@ -179,6 +179,10 @@ class Test(object):
# Runs cmake when in non-script mode
def run_cmake(self):
os.environ['FC'] = self.fc
if self.petsc:
os.environ['PETSC_DIR'] = PETSC_DIR
if self.mpi:
os.environ['MPI_DIR'] = MPI_DIR
build_opts = self.build_opts.split()
self.cmake += build_opts
rc = call(self.cmake)