summaryrefslogtreecommitdiffstats
path: root/cmake/check_reqs.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/check_reqs.cmake')
-rw-r--r--cmake/check_reqs.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/check_reqs.cmake b/cmake/check_reqs.cmake
index 58fb05d..bc081cf 100644
--- a/cmake/check_reqs.cmake
+++ b/cmake/check_reqs.cmake
@@ -3,7 +3,11 @@ set(HAVE_LIBSODIUM FALSE)
get_property(nacl_required GLOBAL PROPERTY NACL_REQUIRED)
if(${nacl_required})
if("${NACL_LIBRARIES}" STREQUAL "")
- message(FATAL_ERROR "NaCl is not available, but a selected module needs it")
+ if(ENABLE_LIBSODIUM)
+ message(FATAL_ERROR "libsodium is not available, but a selected module needs it")
+ else(ENABLE_LIBSODIUM)
+ message(FATAL_ERROR "NaCl is not available, but a selected module needs it")
+ endif(ENABLE_LIBSODIUM)
endif()
if(ENABLE_LIBSODIUM)