aboutsummaryrefslogtreecommitdiff
path: root/modules/FindSasl2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindSasl2.cmake')
-rw-r--r--modules/FindSasl2.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/FindSasl2.cmake b/modules/FindSasl2.cmake
index 1f8603d7..855e21c8 100644
--- a/modules/FindSasl2.cmake
+++ b/modules/FindSasl2.cmake
@@ -37,6 +37,10 @@ if (SASL2_FOUND)
if (NOT Sasl2_FIND_QUIETLY)
message(STATUS "Found sasl2: ${SASL2_LIBRARIES}")
endif (NOT Sasl2_FIND_QUIETLY)
+else(SASL2_FOUND)
+ if (Sasl2_FIND_REQUIRED)
+ message(FATAL_ERROR "Could NOT find sals2 library")
+ endif (Sasl2_FIND_REQUIRED)
endif (SASL2_FOUND)
MARK_AS_ADVANCED(SASL2_INCLUDE_DIR SASL2_LIBRARIES)