summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]CMakeLists.txt8
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")
7endif() 7endif()
8 8
9if(NOT USE_NACL) 9if(USE_NACL)
10 set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY})
11else()
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)
27endif() 25endif()
28 26
27if(NOT USE_NACL)
28 set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY})
29endif()
30
29macro(linkCoreLibraries exe_name) 31macro(linkCoreLibraries exe_name)
30 add_dependencies(${exe_name} core) 32 add_dependencies(${exe_name} core)
31 if(WIN32) 33 if(WIN32)