mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Install MCPL using same build type as OpenMC in CI (#3388)
This commit is contained in:
parent
820648daee
commit
c17908f24c
4 changed files with 9 additions and 9 deletions
|
|
@ -194,6 +194,13 @@ endif()
|
|||
#===============================================================================
|
||||
|
||||
if (OPENMC_USE_MCPL)
|
||||
if (NOT DEFINED MCPL_DIR)
|
||||
execute_process(
|
||||
COMMAND mcpl-config --show cmakedir
|
||||
OUTPUT_VARIABLE MCPL_DIR
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
endif()
|
||||
find_package(MCPL REQUIRED)
|
||||
message(STATUS "Found MCPL: ${MCPL_DIR} (found version \"${MCPL_VERSION}\")")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ if(@OPENMC_USE_OPENMP@)
|
|||
endif()
|
||||
|
||||
if(@OPENMC_USE_MCPL@)
|
||||
find_package(MCPL REQUIRED)
|
||||
find_package(MCPL REQUIRED HINTS @MCPL_DIR@)
|
||||
endif()
|
||||
|
||||
if(@OPENMC_USE_UWUW@ AND NOT ${DAGMC_BUILD_UWUW})
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
cd $HOME
|
||||
git clone https://github.com/mctools/mcpl
|
||||
cd mcpl
|
||||
mkdir build && cd build
|
||||
cmake .. && make 2>/dev/null && sudo make install
|
||||
|
|
@ -29,7 +29,7 @@ if [[ $LIBMESH = 'y' ]]; then
|
|||
fi
|
||||
|
||||
# Install MCPL
|
||||
./tools/ci/gha-install-mcpl.sh
|
||||
pip install mcpl
|
||||
|
||||
# For MPI configurations, make sure mpi4py and h5py are built against the
|
||||
# correct version of MPI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue