diff options
-rw-r--r-- | cmake/Dependencies.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 66e94da7..72c43b40 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake | |||
@@ -33,7 +33,7 @@ pkg_use_module(SNDFILE sndfile ) | |||
33 | # :: For MSVC Windows builds. | 33 | # :: For MSVC Windows builds. |
34 | # | 34 | # |
35 | # These require specific installation paths of dependencies: | 35 | # These require specific installation paths of dependencies: |
36 | # - libsodium in libsodium/Win32/Release/v140/static | 36 | # - libsodium in libsodium/Win32/Release/v140/dynamic |
37 | # - pthreads in pthreads-win32/Pre-built.2 | 37 | # - pthreads in pthreads-win32/Pre-built.2 |
38 | # | 38 | # |
39 | ############################################################################### | 39 | ############################################################################### |
@@ -44,13 +44,12 @@ if(MSVC) | |||
44 | find_library(LIBSODIUM_LIBRARIES | 44 | find_library(LIBSODIUM_LIBRARIES |
45 | NAMES sodium libsodium | 45 | NAMES sodium libsodium |
46 | PATHS | 46 | PATHS |
47 | "libsodium/Win32/Release/v140/static" | 47 | "libsodium/Win32/Release/v140/dynamic" |
48 | "libsodium/x64/Release/v140/static" | 48 | "libsodium/x64/Release/v140/dynamic" |
49 | ) | 49 | ) |
50 | if(LIBSODIUM_LIBRARIES) | 50 | if(LIBSODIUM_LIBRARIES) |
51 | include_directories("libsodium/include") | 51 | include_directories("libsodium/include") |
52 | set(LIBSODIUM_FOUND TRUE) | 52 | set(LIBSODIUM_FOUND TRUE) |
53 | add_definitions(-DSODIUM_STATIC) | ||
54 | message("libsodium: ${LIBSODIUM_LIBRARIES}") | 53 | message("libsodium: ${LIBSODIUM_LIBRARIES}") |
55 | else() | 54 | else() |
56 | message(FATAL_ERROR "libsodium libraries not found") | 55 | message(FATAL_ERROR "libsodium libraries not found") |