diff options
author | Roger Leigh <rleigh@codelibre.net> | 2014-09-09 18:48:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-09 19:19:00 (GMT) |
commit | 2131aeddaa6e9db8f9671bdee0358039fb570b4a (patch) | |
tree | 5da887edecb8fd76de48a5f0065df680b0e0b5cb /Modules/FindIce.cmake | |
parent | d5047ca1b298a52c605be5f05a6458c8147872ae (diff) | |
download | CMake-2131aeddaa6e9db8f9671bdee0358039fb570b4a.zip CMake-2131aeddaa6e9db8f9671bdee0358039fb570b4a.tar.gz CMake-2131aeddaa6e9db8f9671bdee0358039fb570b4a.tar.bz2 |
FindIce: Respect Ice_FIND_QUIETLY when printing messages
Diffstat (limited to 'Modules/FindIce.cmake')
-rw-r--r-- | Modules/FindIce.cmake | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/Modules/FindIce.cmake b/Modules/FindIce.cmake index 50bc60e..60a4107 100644 --- a/Modules/FindIce.cmake +++ b/Modules/FindIce.cmake @@ -240,7 +240,9 @@ function(_Ice_FIND) set(Ice_VERSION "${Ice_VERSION_SLICE2CPP_FULL}" PARENT_SCOPE) endif() - message(STATUS "Ice version: ${Ice_VERSION_SLICE2CPP_FULL}") + if(NOT Ice_FIND_QUIETLY) + message(STATUS "Ice version: ${Ice_VERSION_SLICE2CPP_FULL}") + endif() # Find include directory find_path(Ice_INCLUDE_DIR @@ -305,17 +307,19 @@ function(_Ice_FIND) set(_Ice_REQUIRED_LIBS_FOUND "${Ice_REQUIRED_LIBS_FOUND}" PARENT_SCOPE) set(Ice_LIBRARY "${Ice_LIBRARY}" PARENT_SCOPE) - if(Ice_LIBS_FOUND) - message(STATUS "Found the following Ice libraries:") - foreach(found ${Ice_LIBS_FOUND}) - message(STATUS " ${found}") - endforeach() - endif() - if(Ice_LIBS_NOTFOUND) - message(STATUS "The following Ice libraries were not found:") - foreach(notfound ${Ice_LIBS_NOTFOUND}) - message(STATUS " ${notfound}") - endforeach() + if(NOT Ice_FIND_QUIETLY) + if(Ice_LIBS_FOUND) + message(STATUS "Found the following Ice libraries:") + foreach(found ${Ice_LIBS_FOUND}) + message(STATUS " ${found}") + endforeach() + endif() + if(Ice_LIBS_NOTFOUND) + message(STATUS "The following Ice libraries were not found:") + foreach(notfound ${Ice_LIBS_NOTFOUND}) + message(STATUS " ${notfound}") + endforeach() + endif() endif() if(Ice_DEBUG) |