Skip to content

Commit

Permalink
get the safeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Dec 4, 2024
1 parent e98d102 commit 180b3cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/pyne/pyne/readme.rst")
endif()

# Make the scripts in the "cmake" directory available to CMake
# set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "cmake" PARENT_SCOPE)
# set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/local/Cellar/cmake/3.29.6/share/cmake/Modules")
MESSAGE("CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(DAGMC_macros)

Expand Down
7 changes: 5 additions & 2 deletions src/dagmc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ set(LINK_LIBS_EXTERN_NAMES MOAB_LIBRARIES HDF5_LIBRARIES)
include_directories(${CMAKE_BINARY_DIR}/src/dagmc)

dagmc_install_library(dagmc)
add_dependencies(dagmc-shared MOAB)
target_link_libraries(dagmc-shared PUBLIC ${MOAB_INSTALL_PREFIX}/lib64/libMOAB.so)

if(DDL_INSTALL_DEPS)
add_dependencies(dagmc-shared MOAB)
target_link_libraries(dagmc-shared PUBLIC ${MOAB_INSTALL_PREFIX}/lib64/libMOAB.so)
endif()
add_subdirectory(tools)

if (BUILD_TESTS)
Expand Down
4 changes: 3 additions & 1 deletion src/pyne/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ if(NOT (${HDF5_VERSION} VERSION_LESS 1.12.0))
endif()

dagmc_install_library(pyne_dagmc)
add_dependencies(pyne_dagmc-shared MOAB)
if(DDL_INSTALL_DEPS)
add_dependencies(pyne_dagmc-shared MOAB)
endif()

0 comments on commit 180b3cb

Please sign in to comment.