diff options
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-x[-rw-r--r--] | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a79b74e..9b7db143 100644..100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -6,9 +6,7 @@ if(NOT WIN32) | |||
6 | option(USE_NACL "Use NaCl library instead of libsodium") | 6 | option(USE_NACL "Use NaCl library instead of libsodium") |
7 | endif() | 7 | endif() |
8 | 8 | ||
9 | if(NOT USE_NACL) | 9 | if(USE_NACL) |
10 | set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY}) | ||
11 | else() | ||
12 | find_package(NaCl REQUIRED) | 10 | find_package(NaCl REQUIRED) |
13 | 11 | ||
14 | include_directories(${NACL_INCLUDE_DIR}) | 12 | include_directories(${NACL_INCLUDE_DIR}) |
@@ -26,6 +24,10 @@ if(NOT WIN32) | |||
26 | find_package(SODIUM REQUIRED) | 24 | find_package(SODIUM REQUIRED) |
27 | endif() | 25 | endif() |
28 | 26 | ||
27 | if(NOT USE_NACL) | ||
28 | set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY}) | ||
29 | endif() | ||
30 | |||
29 | macro(linkCoreLibraries exe_name) | 31 | macro(linkCoreLibraries exe_name) |
30 | add_dependencies(${exe_name} core) | 32 | add_dependencies(${exe_name} core) |
31 | if(WIN32) | 33 | if(WIN32) |