Skip to content

Commit

Permalink
fixing path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Dec 6, 2024
1 parent 06fe6d4 commit 7547dfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project(DAGMC)
cmake_minimum_required(VERSION 3.18)
enable_language(CXX)
include(GNUInstallDirs)

# Set DAGMC version
set(DAGMC_MAJOR_VERSION 3)
Expand Down
2 changes: 1 addition & 1 deletion cmake/DAGMC_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ macro (dagmc_install_library lib_name)
# Required to ensure that MOAB is built before DAGMC and to properly link against MOAB
if(DDL_INSTALL_DEPS)
add_dependencies(${lib_name}-shared MOAB)
target_link_libraries(${lib_name}-shared PUBLIC ${MOAB_INSTALL_PREFIX}/lib64/libMOAB.so)
target_link_libraries(${lib_name}-shared PUBLIC ${MOAB_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libMOAB.so)
endif()
endif ()

Expand Down
3 changes: 1 addition & 2 deletions cmake/MOAB_PullAndMake.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ MACRO (moab_pull_make moab_version)
message(STATUS "MOAB will be downloaded and built")
include(ExternalProject)
message("HDF5_ROOT: ${HDF5_ROOT}")
set(CMAKE_INSTALL_LIBDIR "lib")
SET(MOAB_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/moab")
set(MOAB_ROOT "${CMAKE_BINARY_DIR}/moab")
set(MOAB_INCLUDE_DIRS "${MOAB_INSTALL_PREFIX}/include")
Expand All @@ -31,7 +30,7 @@ MACRO (moab_pull_make moab_version)
add_library(MOAB INTERFACE)

target_include_directories(MOAB SYSTEM INTERFACE ${MOAB_INCLUDE_DIRS})
target_link_libraries(MOAB INTERFACE ${MOAB_INSTALL_PREFIX}/lib64/libMOAB.so)
target_link_libraries(MOAB INTERFACE ${MOAB_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libMOAB.so)
add_dependencies(MOAB MOAB_ep)
install(TARGETS MOAB LIBRARY DESTINATION ${MOAB_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})
Expand Down

0 comments on commit 7547dfe

Please sign in to comment.