summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findlibsodium.cmake3
-rw-r--r--cmake/Findlibuecc.cmake3
2 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Findlibsodium.cmake b/cmake/Findlibsodium.cmake
index a82063a..83f8d75 100644
--- a/cmake/Findlibsodium.cmake
+++ b/cmake/Findlibsodium.cmake
@@ -14,7 +14,10 @@ endif(ANDROID)
pkg_check_modules(_LIBSODIUM libsodium)
+find_path(LIBSODIUM_INCLUDE_DIR NAMES sodium/crypto_stream.h HINTS ${_LIBSODIUM_INCLUDE_DIRS} NO_CMAKE_FIND_ROOT_PATH)
find_path(LIBSODIUM_INCLUDE_DIR NAMES sodium/crypto_stream.h HINTS ${_LIBSODIUM_INCLUDE_DIRS})
+
+find_library(LIBSODIUM_LIBRARIES NAMES sodium HINTS ${_LIBSODIUM_LIBRARY_DIRS} NO_CMAKE_FIND_ROOT_PATH)
find_library(LIBSODIUM_LIBRARIES NAMES sodium HINTS ${_LIBSODIUM_LIBRARY_DIRS})
set(LIBSODIUM_CFLAGS_OTHER "${_LIBSODIUM_CFLAGS_OTHER}" CACHE STRING "Additional compiler flags for libsodium")
diff --git a/cmake/Findlibuecc.cmake b/cmake/Findlibuecc.cmake
index b1852d6..8c2e1a8 100644
--- a/cmake/Findlibuecc.cmake
+++ b/cmake/Findlibuecc.cmake
@@ -14,7 +14,10 @@ endif(ANDROID)
pkg_check_modules(_LIBUECC libuecc>=6)
+find_path(LIBUECC_INCLUDE_DIR NAMES libuecc/ecc.h HINTS ${_LIBUECC_INCLUDE_DIRS} NO_CMAKE_FIND_ROOT_PATH)
find_path(LIBUECC_INCLUDE_DIR NAMES libuecc/ecc.h HINTS ${_LIBUECC_INCLUDE_DIRS})
+
+find_library(LIBUECC_LIBRARIES NAMES uecc HINTS ${_LIBUECC_LIBRARY_DIRS} NO_CMAKE_FIND_ROOT_PATH)
find_library(LIBUECC_LIBRARIES NAMES uecc HINTS ${_LIBUECC_LIBRARY_DIRS})
set(LIBUECC_CFLAGS_OTHER "${_LIBUECC_CFLAGS_OTHER}" CACHE STRING "Additional compiler flags for libuecc")