Adapt to change in Conan recipe for NuDB (#4615)

The recipe was updated a few days ago and the exported library target was renamed.
This commit is contained in:
John Freeman
2023-07-11 16:26:15 -05:00
committed by GitHub
parent f7dd37e355
commit eeb8b41889

View File

@@ -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
@@ -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)