diff --git a/projects/rdc/CMakeLists.txt b/projects/rdc/CMakeLists.txt index 83f34c3963..675d1f8a92 100755 --- a/projects/rdc/CMakeLists.txt +++ b/projects/rdc/CMakeLists.txt @@ -76,6 +76,9 @@ option(CMAKE_VERBOSE_MAKEFILE "Enable verbose output" OFF) option(CMAKE_EXPORT_COMPILE_COMMANDS "Export compile commands for linters and autocompleters" ON) +# Don't print 'Up-to-date' when installing +set(CMAKE_INSTALL_MESSAGE LAZY) + # this must go after some CMAKE_* variables project(${RDC} VERSION "${VERSION_STRING}" @@ -260,6 +263,9 @@ if(BUILD_STANDALONE) HINTS ${GRPC_ROOT} CONFIG REQUIRED) + # Don't print grpc install because it floods the terminal + set(OLD_CMAKE_INSTALL_MESSAGE ${CMAKE_INSTALL_MESSAGE}) + set(CMAKE_INSTALL_MESSAGE NEVER) # Only allow installation when GRPC_ROOT is not default # The alternative is installing all libraries and binaries from # GRPC_ROOT_DEFAULT (/usr), which is incorrect behavior. @@ -287,6 +293,9 @@ if(BUILD_STANDALONE) DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}/grpc COMPONENT ${SERVER_COMPONENT}) endif() + # Restore printing verbosity + set(CMAKE_INSTALL_MESSAGE ${OLD_CMAKE_INSTALL_MESSAGE}) + unset(OLD_CMAKE_INSTALL_MESSAGE) add_subdirectory("server") add_subdirectory("client") @@ -363,9 +372,15 @@ install(PROGRAMS ${RAS_SOURCES} install(DIRECTORY ${PROJECT_SOURCE_DIR}/ras_prebuild/config DESTINATION ${CMAKE_INSTALL_DATADIR}/${RDC} COMPONENT ${CLIENT_COMPONENT}) +# Don't sp3 grpc install because it floods the terminal +set(OLD_CMAKE_INSTALL_MESSAGE ${CMAKE_INSTALL_MESSAGE}) +set(CMAKE_INSTALL_MESSAGE NEVER) install(DIRECTORY ${PROJECT_SOURCE_DIR}/ras_prebuild/sp3 DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC} COMPONENT ${CLIENT_COMPONENT}) +# Restore printing verbosity +set(CMAKE_INSTALL_MESSAGE ${OLD_CMAKE_INSTALL_MESSAGE}) +unset(OLD_CMAKE_INSTALL_MESSAGE) #Identify between SLES and Centos for setting symlink for rdc.service diff --git a/projects/rdc/rdc_libs/CMakeLists.txt b/projects/rdc/rdc_libs/CMakeLists.txt index 1fecca1ed4..225632cc7e 100755 --- a/projects/rdc/rdc_libs/CMakeLists.txt +++ b/projects/rdc/rdc_libs/CMakeLists.txt @@ -135,10 +135,16 @@ install(FILES ${PROJECT_SOURCE_DIR}/include/rdc/rdc.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${RDC} COMPONENT ${CLIENT_COMPONENT}) +# Don't print kernel install because it floods the terminal +set(OLD_CMAKE_INSTALL_MESSAGE ${CMAKE_INSTALL_MESSAGE}) +set(CMAKE_INSTALL_MESSAGE NEVER) # Install the kernel files install(DIRECTORY ${SRC_DIR}/rdc_modules/kernels/hsaco DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC} COMPONENT ${CLIENT_COMPONENT}) +# Restore printing verbosity +set(CMAKE_INSTALL_MESSAGE ${OLD_CMAKE_INSTALL_MESSAGE}) +unset(OLD_CMAKE_INSTALL_MESSAGE) message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&")