Skip to content

Commit

Permalink
Adapt to change in Conan recipe for NuDB (XRPLF#4615)
Browse files Browse the repository at this point in the history
The recipe was updated a few days ago and the exported library target was renamed.
  • Loading branch information
thejohnfreeman authored and ckeshava committed Sep 22, 2023
1 parent 3e1cd0d commit 74181af
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ target_link_libraries(ripple_libs INTERFACE
ed25519::ed25519
LibArchive::LibArchive
lz4::lz4
nudb::core
OpenSSL::Crypto
OpenSSL::SSL
Ripple::grpc_pbufs
Expand All @@ -110,6 +109,16 @@ target_link_libraries(ripple_libs INTERFACE
SQLite::SQLite3
)

# Work around changes to Conan recipe for now.
if(TARGET nudb::core)
set(nudb nudb::core)
elseif(TARGET NuDB::nudb)
set(nudb NuDB::nudb)
else()
message(FATAL_ERROR "unknown nudb target")
endif()
target_link_libraries(ripple_libs INTERFACE ${nudb})

if(reporting)
find_package(cassandra-cpp-driver REQUIRED)
find_package(PostgreSQL REQUIRED)
Expand Down

0 comments on commit 74181af

Please sign in to comment.