mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Make sure MPI_DIR and PETSC_DIR are passed when running CMake from run_tests.py
This commit is contained in:
parent
5996f2f5c2
commit
500fea92cc
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue