diff --git a/CMakeLists.txt b/CMakeLists.txt index 23c5c1dc..34ae1595 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -267,6 +267,7 @@ if(ENABLE_CURVE) if(SODIUM_FOUND) message(STATUS "Using libsodium for CURVE security") include_directories(${SODIUM_INCLUDE_DIRS}) + link_directories(${SODIUM_LIBRARY_DIRS}) if(WITH_LIBSODIUM_STATIC) add_compile_definitions(SODIUM_STATIC) endif()