Use a single target_link_libraries call

This commit is contained in:
Luke Parker 2024-05-26 05:25:32 -04:00 committed by j-berman
parent 1a44ceb905
commit 23be5f6c28

View File

@ -42,7 +42,9 @@ monero_add_library_with_deps(
${fcmp_headers})
if(WIN32)
target_link_libraries(fcmp ws2_32 ntdll userenv)
set(EXTRA_RUST_LIBRARIES ws2_32 ntdll userenv)
else()
set(EXTRA_RUST_LIBRARIES )
endif()
target_link_libraries(fcmp
@ -53,4 +55,5 @@ target_link_libraries(fcmp
ringct
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/fcmp_rust/libfcmp_rust.a
${EXTRA_LIBRARIES})
${EXTRA_LIBRARIES}
${EXTRA_RUST_LIBRARIES})