FindIce: Respect Ice_FIND_QUIETLY when printing messages

This commit is contained in:
Roger Leigh 2014-09-09 18:48:28 +00:00 committed by Brad King
parent d5047ca1b2
commit 2131aeddaa
1 changed files with 16 additions and 12 deletions

View File

@ -240,7 +240,9 @@ function(_Ice_FIND)
set(Ice_VERSION "${Ice_VERSION_SLICE2CPP_FULL}" PARENT_SCOPE) set(Ice_VERSION "${Ice_VERSION_SLICE2CPP_FULL}" PARENT_SCOPE)
endif() endif()
if(NOT Ice_FIND_QUIETLY)
message(STATUS "Ice version: ${Ice_VERSION_SLICE2CPP_FULL}") message(STATUS "Ice version: ${Ice_VERSION_SLICE2CPP_FULL}")
endif()
# Find include directory # Find include directory
find_path(Ice_INCLUDE_DIR find_path(Ice_INCLUDE_DIR
@ -305,6 +307,7 @@ function(_Ice_FIND)
set(_Ice_REQUIRED_LIBS_FOUND "${Ice_REQUIRED_LIBS_FOUND}" PARENT_SCOPE) set(_Ice_REQUIRED_LIBS_FOUND "${Ice_REQUIRED_LIBS_FOUND}" PARENT_SCOPE)
set(Ice_LIBRARY "${Ice_LIBRARY}" PARENT_SCOPE) set(Ice_LIBRARY "${Ice_LIBRARY}" PARENT_SCOPE)
if(NOT Ice_FIND_QUIETLY)
if(Ice_LIBS_FOUND) if(Ice_LIBS_FOUND)
message(STATUS "Found the following Ice libraries:") message(STATUS "Found the following Ice libraries:")
foreach(found ${Ice_LIBS_FOUND}) foreach(found ${Ice_LIBS_FOUND})
@ -317,6 +320,7 @@ function(_Ice_FIND)
message(STATUS " ${notfound}") message(STATUS " ${notfound}")
endforeach() endforeach()
endif() endif()
endif()
if(Ice_DEBUG) if(Ice_DEBUG)
message(STATUS "--------FindIce.cmake search debug--------") message(STATUS "--------FindIce.cmake search debug--------")