Update CMakeLists.txt

This commit is contained in:
Lee *!* Clagett 2024-02-25 20:04:56 -05:00 committed by GitHub
parent 0d9a9601a1
commit ec45f68d85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ load_cache(${MONERO_BUILD_DIR} READ_WITH_PREFIX monero_
OPENSSL_INCLUDE_DIR
OPENSSL_CRYPTO_LIBRARY
OPENSSL_SSL_LIBRARY
sodium_LIBRARIES
SODIUM_LIBRARY
UNBOUND_LIBRARIES
ZMQ_INCLUDE_PATH
ZMQ_LIB
@ -191,10 +191,10 @@ endif()
if(monero_PROTOLIB_LIBRARY)
set(ZMQ_LIB "${ZMQ_LIB};${monero_PROTOLIB_LIBRARY}")
endif()
if(NOT monero_sodium_LIBRARIES)
if(NOT monero_SODIUM_LIBRARY)
message(FATAL_ERROR "Could not find Sodium Library")
else ()
set(ZMQ_LIB "${ZMQ_LIB};${monero_sodium_LIBRARIES}")
set(ZMQ_LIB "${ZMQ_LIB};${monero_SODIUM_LIBRARY}")
endif()
if(STATIC AND NOT IOS)
@ -214,7 +214,7 @@ foreach (LIB ${MONERO_LIBRARIES})
else ()
set(LIB_NAME "monero::${LIB}")
add_library(${LIB_NAME} STATIC IMPORTED)
target_link_libraries(${LIB_NAME} PUBLIC ${monero_sodium_LIBRARIES})
target_link_libraries(${LIB_NAME} PUBLIC ${monero_SODIUM_LIBRARY})
set_target_properties(${LIB_NAME} PROPERTIES IMPORTED_LOCATION ${LIB_PATH})
list(APPEND IMPORTED_MONERO_LIBRARIES "${LIB_NAME}")
endif()