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 seelabs committed Jul 11, 2023
1 parent 800cccc commit 0ba9d23
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 @@ -113,7 +113,6 @@ target_link_libraries(ripple_libs INTERFACE
ed25519::ed25519
LibArchive::LibArchive
lz4::lz4
nudb::core
OpenSSL::Crypto
OpenSSL::SSL
Ripple::grpc_pbufs
Expand All @@ -123,6 +122,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 0ba9d23

Please sign in to comment.