summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-04 14:21:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-04 14:21:05 +0100
commit6bb2daddb07642bbd5acb6ae8e5070d7eba49352 (patch)
tree9756fb3c035113ebec839186c7ef101d56d41368 /CMakeLists.txt
parentbcf9dc3ae6021f404a62b45874d67577704ee24f (diff)
downloadrspamd-6bb2daddb07642bbd5acb6ae8e5070d7eba49352.tar.gz
rspamd-6bb2daddb07642bbd5acb6ae8e5070d7eba49352.zip
[Fix] Repair optional dependencies
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b111f086d..bd525e580 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -391,8 +391,8 @@ MACRO(ProcessPackage PKG_NAME)
PATH_SUFFIXES ${PKG_LIB_SUFFIXES} lib64 lib
PATHS ${RSPAMD_DEFAULT_LIBRARY_PATHS})
IF(NOT _lib)
- IF(OPTIONAL)
- MESSAGE("Cannot find library ${PKG_LIBRARY} for package ${PKG_NAME}")
+ IF(PKG_OPTIONAL)
+ MESSAGE(STATUS "Cannot find library ${PKG_LIBRARY} for package ${PKG_NAME}, ignoring")
ELSE()
MESSAGE(FATAL_ERROR "Cannot find library ${PKG_LIBRARY} for package ${PKG_NAME}")
ENDIF()
@@ -403,8 +403,8 @@ MACRO(ProcessPackage PKG_NAME)
PATH_SUFFIXES ${PKG_INCLUDE_SUFFIXES} include
PATHS {RSPAMD_DEFAULT_INCLUDE_PATHS})
IF(NOT _incl)
- IF(OPTIONAL)
- MESSAGE("Cannot find header ${PKG_INCLUDE} for package ${PKG_NAME}")
+ IF(PKG_OPTIONAL)
+ MESSAGE(STATUS "Cannot find header ${PKG_INCLUDE} for package ${PKG_NAME}")
ELSE()
MESSAGE(FATAL_ERROR "Cannot find header ${PKG_INCLUDE} for package ${PKG_NAME}")
ENDIF()