diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-06-11 16:43:00 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-06-11 16:43:00 +0200 |
commit | ed817eb9067976b9d6d134bc0992bbbf883e6675 (patch) | |
tree | e8fddf4c90e8a4e03ad4f2ae1cad73d5ea2fb0e8 /cmake | |
parent | 6b139d613ae6fa127bdce1be5c634ed4b53b1efd (diff) | |
download | fastd-ed817eb9067976b9d6d134bc0992bbbf883e6675.tar fastd-ed817eb9067976b9d6d134bc0992bbbf883e6675.zip |
Fix error message when ENABLE_LIBSODIUM is set and libsodium is not found
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/check_reqs.cmake | 6 |
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) |