CMAKE: Reduce install messages size

Change-Id: I6fa7cfe986b1de702492a96bddbfd406501bba50
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
Galantsev, Dmitrii
2024-01-22 16:27:45 -06:00
parent 5cfe2b4169
commit aa5448fc16
2 changed files with 21 additions and 0 deletions
+15
View File
@@ -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
+6
View File
@@ -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("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&")