Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ option(SIPHON_BUILD_TESTS "Build siphon tests" OFF)
# == Dependencies ==
set(CONFLUENCE_DOL_YAML OFF CACHE BOOL "" FORCE)

find_package(Confluence REQUIRED)
find_package(Confluence QUIET)
if(NOT Confluence_FOUND)
include(FetchContent)
FetchContent_Declare(
Confluence
GIT_REPOSITORY https://github.com/Linifadomra/Confluence
GIT_TAG a7f6fc07ceb76b88f9297dcbcc79c8b9c475418b
)
FetchContent_MakeAvailable(Confluence)
endif()

if(NOT TARGET Confluence::confluence)
add_library(Confluence::confluence ALIAS confluence)
endif()
find_package(ZLIB REQUIRED)
find_package(PkgConfig)
if(PkgConfig_FOUND)
Expand Down
Loading