Skip to content

Commit

Permalink
Fix link order between ed25519 and needed symbols in interface.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Sep 27, 2023
1 parent d668c88 commit a0c1bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions nano/crypto_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
add_library(
crypto_lib interface.cpp random_pool.hpp random_pool.cpp
random_pool_shuffle.hpp secure_memory.hpp secure_memory.cpp)
add_library(nano_ed25519 interface.cpp)

target_link_libraries(crypto_lib blake2 ${CRYPTOPP_LIBRARY})
target_link_libraries(ed25519 nano_ed25519)

add_library(crypto_lib random_pool.hpp random_pool.cpp random_pool_shuffle.hpp
secure_memory.hpp secure_memory.cpp)

target_link_libraries(crypto_lib blake2 ed25519 ${CRYPTOPP_LIBRARY})
1 change: 0 additions & 1 deletion nano/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ target_link_libraries(
nano_lib
ipc_flatbuffers_lib
crypto_lib
ed25519
blake2
${CRYPTOPP_LIBRARY}
${CMAKE_DL_LIBS}
Expand Down

0 comments on commit a0c1bd0

Please sign in to comment.