Skip to content

Commit

Permalink
making use of moab fork with changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-proximafusion committed Nov 14, 2024
1 parent 86e36b5 commit 7373741
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,19 @@ if (NOT MOAB_FOUND)
message(STATUS "MOAB not found. Fetching MOAB...")
FetchContent_Declare(
moab
GIT_REPOSITORY https://bitbucket.org/fathomteam/moab.git
GIT_BRANCH master
# making use of branch on fork as it has a one line change that help this fetch command work
# GIT_REPOSITORY https://bitbucket.org/fathomteam/moab.git
# GIT_BRANCH master
# GIT_TAG 5.5.1
GIT_REPOSITORY https://bitbucket.org/moab-fork/moab.git
GIT_TAG Jonathan-Shimwell/adding-current-to-dir
GIT_SHALLOW TRUE
)

FetchContent_MakeAvailable(moab)
add_subdirectory(${moab_SOURCE_DIR} ${moab_BINARY_DIR}) # MOAB repository is not properly configured for a FetchContent build
add_subdirectory(${moab_SOURCE_DIR} ${moab_BINARY_DIR}/moab-build)
# Set MOAB_DIR to the fetched content
set(MOAB_DIR ${moab_SOURCE_DIR})
set(MOAB_DIR ${moab_BINARY_DIR}/moab-build)
find_package(MOAB REQUIRED)
endif()

Expand Down

0 comments on commit 7373741

Please sign in to comment.