Skip to content

Commit

Permalink
Load brain graph before all other dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklas-uhl committed Oct 7, 2024
1 parent 14c8ee5 commit 24e630d
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,25 @@ if (KAGEN_USE_SPARSEHASH)
list(APPEND KAGEN_LINK_LIBRARIES Sparsehash::Sparsehash)
add_definitions(-DKAGEN_SPARSEHASH_FOUND)
endif ()

###############################################################################
# RELeARN brain graph generator
###############################################################################

if (KAGEN_ENABLE_BRAIN_GRAPH)
set(CMAKE_CXX_STANDARD 20)
FetchContent_Declare(
relearn
GIT_REPOSITORY https://github.com/KarlsruheGraphGeneration/RELeARN.git
GIT_TAG 42158d1
SOURCE_SUBDIR relearn
SYSTEM
)
FetchContent_MakeAvailable(relearn)
list(APPEND KAGEN_LINK_LIBRARIES relearn_lib)
add_definitions(-DKAGEN_ENABLE_BRAIN_GRAPH)

endif()

###############################################################################
# CGAL
Expand Down Expand Up @@ -197,24 +216,6 @@ if (KAGEN_USE_MKL)
endif ()
endif ()

###############################################################################
# RELeARN brain graph generator
###############################################################################

if (KAGEN_ENABLE_BRAIN_GRAPH)
set(CMAKE_CXX_STANDARD 20)
FetchContent_Declare(
relearn
GIT_REPOSITORY https://github.com/KarlsruheGraphGeneration/RELeARN.git
GIT_TAG 9a448d3
SOURCE_SUBDIR relearn
SYSTEM
)
FetchContent_MakeAvailable(relearn)
list(APPEND KAGEN_LINK_LIBRARIES relearn_lib)
add_definitions(-DKAGEN_ENABLE_BRAIN_GRAPH)

endif()

################################################################################

Expand Down

0 comments on commit 24e630d

Please sign in to comment.