Skip to content

Commit

Permalink
cleaning variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Jan 9, 2025
1 parent ef5a2e0 commit 6675cef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
5.4.1,
5.5.1,
]
ddl_deps : [
pull_install_moab : [
off,
]
geant4_version : [
Expand All @@ -66,7 +66,7 @@ jobs:
compiler: gcc
hdf5_version: 1.14.3
moab_version: 5.4.1
ddl_deps: on
pull_install_moab: on
geant4_version: off
double_down_version: off

Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
cmake ../ \
-DMOAB_DIR=${moab_install_dir} \
-DBUILD_GEANT4=$([ "${{ matrix.geant4_version }}" != "off" ] && echo "ON" || echo "OFF") \
-DDDL_INSTALL_DEPS=$([ "${{ matrix.ddl_deps }}" != "on" ] && echo "OFF" || echo "ON -DHDF5_ROOT=${hdf5_install_dir}") \
-DPULL_INSTALL_MOAB=$([ "${{ matrix.pull_install_moab }}" != "on" ] && echo "OFF" || echo "ON -DHDF5_ROOT=${hdf5_install_dir}") \
-DGEANT4_DIR=${geant4_install_dir} \
-DBUILD_CI_TESTS=ON \
-DBUILD_MW_REG_TESTS=OFF \
Expand Down
4 changes: 2 additions & 2 deletions cmake/DAGMC_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ macro (dagmc_setup_options)

option(DOUBLE_DOWN "Enable ray tracing with Embree via double down" OFF)

option(DDL_INSTALL_DEPS "Enable automatic downloading of MOAB dependency" OFF)
option(PULL_INSTALL_MOAB "Enable automatic downloading of MOAB dependency" OFF)

if (BUILD_ALL)
set(BUILD_MCNP5 ON)
Expand Down Expand Up @@ -256,7 +256,7 @@ macro (dagmc_install_library lib_name)
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})
# Required to ensure that MOAB is built before DAGMC and to properly link against MOAB
if(DDL_INSTALL_DEPS)
if(PULL_INSTALL_MOAB)
add_dependencies(${lib_name}-shared MOAB)
target_link_libraries(${lib_name}-shared PUBLIC ${MOAB_LIBRARY_DIRS}/libMOAB${CMAKE_SHARED_LIBRARY_SUFFIX})
endif()
Expand Down
6 changes: 3 additions & 3 deletions cmake/FindMOAB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ find_path(MOAB_CMAKE_CONFIG
)

# First check if we are forcing the download of MOAB
if (DDL_INSTALL_DEPS)
if (PULL_INSTALL_MOAB)
if(DAGMC_BUILD_STATIC_LIBS)
message(FATAL_ERROR "DDL_INSTALL_DEPS is ONLY compatible with shared libraries.")
message(FATAL_ERROR "PULL_INSTALL_MOAB is ONLY compatible with shared libraries.")
endif()
if(NOT MOAB_VERSION)
set(MOAB_VERSION "5.5.1")
Expand Down Expand Up @@ -84,7 +84,7 @@ message(STATUS "MOAB_LIBRARY_DIRS: ${MOAB_LIBRARY_DIRS}")
message(STATUS "MOAB_LIBRARIES_SHARED: ${MOAB_LIBRARIES_SHARED}")
message(STATUS "MOAB_LIBRARIES_STATIC: ${MOAB_LIBRARIES_STATIC}")

if(DDL_INSTALL_DEPS)
if(PULL_INSTALL_MOAB)
message(STATUS "MOAB will be downloaded and built at make time")
elseif (MOAB_INCLUDE_DIRS AND (MOAB_LIBRARIES_SHARED OR NOT BUILD_SHARED_LIBS) AND
(MOAB_LIBRARIES_STATIC OR NOT BUILD_STATIC_LIBS))
Expand Down
2 changes: 1 addition & 1 deletion src/mcnp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ add_library(mcnp_funcs OBJECT mcnp_funcs.cpp)
message(STATUS "Building object library: meshtal_funcs")
add_library(meshtal_funcs OBJECT meshtal_funcs.cpp)

if(DDL_INSTALL_DEPS)
if(PULL_INSTALL_MOAB)
add_dependencies(mcnp_funcs MOAB)
add_dependencies(meshtal_funcs MOAB)
endif()
Expand Down

0 comments on commit 6675cef

Please sign in to comment.