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/FindCXSparse.cmake b/cmake/FindCXSparse.cmake
index e291cda..8c3f368 100644
--- a/cmake/FindCXSparse.cmake
+++ b/cmake/FindCXSparse.cmake
@@ -85,9 +85,9 @@
ELSEIF (CXSparse_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Failed to find CXSparse - " ${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 CXSparse - " ${REASON_MSG} ${ARGN})
+ MESSAGE("-- Failed to find CXSparse - " ${REASON_MSG} ${ARGN})
ENDIF ()
ENDMACRO(CXSPARSE_REPORT_NOT_FOUND)
diff --git a/cmake/FindEigen.cmake b/cmake/FindEigen.cmake
index 654e41d..2cd3e12 100644
--- a/cmake/FindEigen.cmake
+++ b/cmake/FindEigen.cmake
@@ -76,9 +76,9 @@
ELSEIF (Eigen_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Failed to find Eigen - " ${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 Eigen - " ${REASON_MSG} ${ARGN})
+ MESSAGE("-- Failed to find Eigen - " ${REASON_MSG} ${ARGN})
ENDIF ()
ENDMACRO(EIGEN_REPORT_NOT_FOUND)
diff --git a/cmake/FindGflags.cmake b/cmake/FindGflags.cmake
index 7023982..1148d03 100644
--- a/cmake/FindGflags.cmake
+++ b/cmake/FindGflags.cmake
@@ -78,9 +78,9 @@
ELSEIF (Gflags_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Failed to find gflags - " ${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 gflags - " ${REASON_MSG} ${ARGN})
+ MESSAGE("-- Failed to find gflags - " ${REASON_MSG} ${ARGN})
ENDIF ()
ENDMACRO(GFLAGS_REPORT_NOT_FOUND)
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)
diff --git a/cmake/FindSuiteSparse.cmake b/cmake/FindSuiteSparse.cmake
index 20c3161..3f3a50d 100644
--- a/cmake/FindSuiteSparse.cmake
+++ b/cmake/FindSuiteSparse.cmake
@@ -128,9 +128,9 @@
ELSEIF (SuiteSparse_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Failed to find SuiteSparse - " ${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 SuiteSparse - " ${REASON_MSG} ${ARGN})
+ MESSAGE("-- Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN})
ENDIF (SuiteSparse_FIND_QUIETLY)
ENDMACRO(SUITESPARSE_REPORT_NOT_FOUND)