Skip to content

Commit 180b3cb

Browse files
committed
get the safeguard
1 parent e98d102 commit 180b3cb

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/pyne/pyne/readme.rst")
4848
endif()
4949

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

src/dagmc/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ set(LINK_LIBS_EXTERN_NAMES MOAB_LIBRARIES HDF5_LIBRARIES)
1313
include_directories(${CMAKE_BINARY_DIR}/src/dagmc)
1414

1515
dagmc_install_library(dagmc)
16-
add_dependencies(dagmc-shared MOAB)
17-
target_link_libraries(dagmc-shared PUBLIC ${MOAB_INSTALL_PREFIX}/lib64/libMOAB.so)
16+
17+
if(DDL_INSTALL_DEPS)
18+
add_dependencies(dagmc-shared MOAB)
19+
target_link_libraries(dagmc-shared PUBLIC ${MOAB_INSTALL_PREFIX}/lib64/libMOAB.so)
20+
endif()
1821
add_subdirectory(tools)
1922

2023
if (BUILD_TESTS)

src/pyne/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ if(NOT (${HDF5_VERSION} VERSION_LESS 1.12.0))
3434
endif()
3535

3636
dagmc_install_library(pyne_dagmc)
37-
add_dependencies(pyne_dagmc-shared MOAB)
37+
if(DDL_INSTALL_DEPS)
38+
add_dependencies(pyne_dagmc-shared MOAB)
39+
endif()

0 commit comments

Comments
 (0)