CMAKE: Reduce install messages size
Change-Id: I6fa7cfe986b1de702492a96bddbfd406501bba50 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
@@ -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)
|
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
|
# this must go after some CMAKE_* variables
|
||||||
project(${RDC}
|
project(${RDC}
|
||||||
VERSION "${VERSION_STRING}"
|
VERSION "${VERSION_STRING}"
|
||||||
@@ -260,6 +263,9 @@ if(BUILD_STANDALONE)
|
|||||||
HINTS ${GRPC_ROOT}
|
HINTS ${GRPC_ROOT}
|
||||||
CONFIG REQUIRED)
|
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
|
# Only allow installation when GRPC_ROOT is not default
|
||||||
# The alternative is installing all libraries and binaries from
|
# The alternative is installing all libraries and binaries from
|
||||||
# GRPC_ROOT_DEFAULT (/usr), which is incorrect behavior.
|
# GRPC_ROOT_DEFAULT (/usr), which is incorrect behavior.
|
||||||
@@ -287,6 +293,9 @@ if(BUILD_STANDALONE)
|
|||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}/grpc
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}/grpc
|
||||||
COMPONENT ${SERVER_COMPONENT})
|
COMPONENT ${SERVER_COMPONENT})
|
||||||
endif()
|
endif()
|
||||||
|
# Restore printing verbosity
|
||||||
|
set(CMAKE_INSTALL_MESSAGE ${OLD_CMAKE_INSTALL_MESSAGE})
|
||||||
|
unset(OLD_CMAKE_INSTALL_MESSAGE)
|
||||||
|
|
||||||
add_subdirectory("server")
|
add_subdirectory("server")
|
||||||
add_subdirectory("client")
|
add_subdirectory("client")
|
||||||
@@ -363,9 +372,15 @@ install(PROGRAMS ${RAS_SOURCES}
|
|||||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ras_prebuild/config
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ras_prebuild/config
|
||||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/${RDC}
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/${RDC}
|
||||||
COMPONENT ${CLIENT_COMPONENT})
|
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
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ras_prebuild/sp3
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}
|
||||||
COMPONENT ${CLIENT_COMPONENT})
|
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
|
#Identify between SLES and Centos for setting symlink for rdc.service
|
||||||
|
|||||||
@@ -135,10 +135,16 @@ install(FILES ${PROJECT_SOURCE_DIR}/include/rdc/rdc.h
|
|||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${RDC}
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${RDC}
|
||||||
COMPONENT ${CLIENT_COMPONENT})
|
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 the kernel files
|
||||||
install(DIRECTORY ${SRC_DIR}/rdc_modules/kernels/hsaco
|
install(DIRECTORY ${SRC_DIR}/rdc_modules/kernels/hsaco
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${RDC}
|
||||||
COMPONENT ${CLIENT_COMPONENT})
|
COMPONENT ${CLIENT_COMPONENT})
|
||||||
|
# Restore printing verbosity
|
||||||
|
set(CMAKE_INSTALL_MESSAGE ${OLD_CMAKE_INSTALL_MESSAGE})
|
||||||
|
unset(OLD_CMAKE_INSTALL_MESSAGE)
|
||||||
|
|
||||||
|
|
||||||
message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&")
|
message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&")
|
||||||
|
|||||||
Reference in New Issue
Block a user