From 3a719272cbeaa6f14fd66d1411743d83fbc0561a Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 4 Aug 2024 10:37:31 -0500 Subject: [PATCH] updated build system --- cmake/libraries/libsodium.cmake | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/cmake/libraries/libsodium.cmake b/cmake/libraries/libsodium.cmake index 56b759a8..518b6032 100644 --- a/cmake/libraries/libsodium.cmake +++ b/cmake/libraries/libsodium.cmake @@ -4,19 +4,9 @@ if(PROJECT_ENABLE_LIBSODIUM) pkg_check_modules(SODIUM libsodium=${LIBSODIUM_VERSION} REQUIRED) - include_directories(BEFORE SYSTEM - ${SODIUM_INCLUDE_DIRS} - ) + include_directories(BEFORE SYSTEM ${SODIUM_INCLUDE_DIRS}) - if(PROJECT_BUILD_SHARED_LIBS) - link_libraries( - ${SODIUM_LINK_LIBRARIES} - ) - else() - link_libraries( - ${SODIUM_STATIC_LINK_LIBRARIES} - ) - endif() + link_libraries(${SODIUM_LINK_LIBRARIES}) elseif(NOT PROJECT_IS_MINGW OR CMAKE_HOST_WIN32) if(PROJECT_IS_MINGW) set(LIBSODIUM_TYPE mingw64)