diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/deps.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/deps.cmake b/cmake/deps.cmake index ec77e1d..016255e 100644 --- a/cmake/deps.cmake +++ b/cmake/deps.cmake @@ -12,7 +12,7 @@ endif(ANDROID) find_package(libuecc REQUIRED) -set(NACL_INCLUDE_DIR) +set(NACL_INCLUDE_DIRS) set(NACL_CFLAGS_OTHER) set(NACL_LIBRARIES) set(NACL_LDFLAGS_OTHER) @@ -21,7 +21,7 @@ if(ENABLE_LIBSODIUM) find_package(libsodium) if(LIBSODIUM_FOUND) - set(NACL_INCLUDE_DIR "${LIBSODIUM_INCLUDE_DIR}/sodium") + set(NACL_INCLUDE_DIRS "${LIBSODIUM_INCLUDE_DIR};${LIBSODIUM_INCLUDE_DIR}/sodium") set(NACL_LIBRARIES "${LIBSODIUM_LIBRARIES}") set(NACL_CFLAGS_OTHER "${LIBSODIUM_CFLAGS_OTHER}") set(NACL_LDFLAGS_OTHER "${LIBSODIUM_LDFLAGS_OTHER}") @@ -29,6 +29,7 @@ if(ENABLE_LIBSODIUM) else(ENABLE_LIBSODIUM) find_package(NaCl) + set(NACL_INCLUDE_DIRS "${NACL_INCLUDE_DIR}") set(NACL_LIBRARIES "${NACL_LIBRARY}") endif(ENABLE_LIBSODIUM) |