summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindSODIUM.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/FindSODIUM.cmake b/cmake/FindSODIUM.cmake
index fd6206ff..ff9bc27b 100644
--- a/cmake/FindSODIUM.cmake
+++ b/cmake/FindSODIUM.cmake
@@ -26,11 +26,12 @@ set(_SODIUM_ROOT_HINTS
26 26
27set(_SODIUM_ROOT_PATHS 27set(_SODIUM_ROOT_PATHS
28 "$ENV{PROGRAMFILES}/sodium" 28 "$ENV{PROGRAMFILES}/sodium"
29 "${CMAKE_SOURCE_DIR}/sodium"
29) 30)
30 31
31find_path(SODIUM_ROOT_DIR 32find_path(SODIUM_ROOT_DIR
32 NAMES 33 NAMES
33 include/cmocka.h 34 include/sodium.h
34 HINTS 35 HINTS
35 ${_SODIUM_ROOT_HINTS} 36 ${_SODIUM_ROOT_HINTS}
36 PATHS 37 PATHS
@@ -48,6 +49,7 @@ find_path(SODIUM_INCLUDE_DIR
48find_library(SODIUM_LIBRARY 49find_library(SODIUM_LIBRARY
49 NAMES 50 NAMES
50 sodium 51 sodium
52 libsodium.a
51 PATHS 53 PATHS
52 ${SODIUM_ROOT_DIR}/lib 54 ${SODIUM_ROOT_DIR}/lib
53) 55)