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()
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 include directory
find_path(Ice_INCLUDE_DIR 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_REQUIRED_LIBS_FOUND "${Ice_REQUIRED_LIBS_FOUND}" PARENT_SCOPE)
set(Ice_LIBRARY "${Ice_LIBRARY}" PARENT_SCOPE) set(Ice_LIBRARY "${Ice_LIBRARY}" PARENT_SCOPE)
if(Ice_LIBS_FOUND) if(NOT Ice_FIND_QUIETLY)
message(STATUS "Found the following Ice libraries:") if(Ice_LIBS_FOUND)
foreach(found ${Ice_LIBS_FOUND}) message(STATUS "Found the following Ice libraries:")
message(STATUS " ${found}") foreach(found ${Ice_LIBS_FOUND})
endforeach() message(STATUS " ${found}")
endif() endforeach()
if(Ice_LIBS_NOTFOUND) endif()
message(STATUS "The following Ice libraries were not found:") if(Ice_LIBS_NOTFOUND)
foreach(notfound ${Ice_LIBS_NOTFOUND}) message(STATUS "The following Ice libraries were not found:")
message(STATUS " ${notfound}") foreach(notfound ${Ice_LIBS_NOTFOUND})
endforeach() message(STATUS " ${notfound}")
endforeach()
endif()
endif() endif()
if(Ice_DEBUG) if(Ice_DEBUG)