Downgrading warning messages when optional deps are not found.
- Now when find_package() is called for a dependency without the
REQUIRED or QUIET qualifiers, we emit no priority (above STATUS, but
below WARNING) messages and continue.
Change-Id: I8cdeda7a8f6c91d45fb7f24fb366244c6c9b66e1
diff --git a/cmake/FindGlog.cmake b/cmake/FindGlog.cmake
index a3f35f6..85c3f06 100644
--- a/cmake/FindGlog.cmake
+++ b/cmake/FindGlog.cmake
@@ -78,9 +78,9 @@
ELSEIF (Glog_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Failed to find glog - " ${REASON_MSG} ${ARGN})
ELSE()
- # Neither QUIETLY nor REQUIRED, use WARNING which emits a message
+ # Neither QUIETLY nor REQUIRED, use no priority which emits a message
# but continues configuration and allows generation.
- MESSAGE(WARNING "Failed to find glog - " ${REASON_MSG} ${ARGN})
+ MESSAGE("-- Failed to find glog - " ${REASON_MSG} ${ARGN})
ENDIF ()
ENDMACRO(GLOG_REPORT_NOT_FOUND)