Skip to content

Commit dc6e40b

Browse files
committed
cmake: Reduce install verbosity setting CMAKE_INSTALL_MESSAGE to NEVER
See https://cmake.org/cmake/help/v3.6/variable/CMAKE_INSTALL_MESSAGE.html?highlight=cmake_install_message
1 parent e373377 commit dc6e40b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ if(CMakePythonDistributions_SUPERBUILD)
256256
-DCMAKE_USE_OPENSSL:BOOL=ON
257257
-DBUILD_TESTING:BOOL=OFF
258258
-DCMake_INSTALL_DEPENDENCIES:BOOL=ON
259+
-DCMAKE_INSTALL_MESSAGE:STRING=NEVER
259260
USES_TERMINAL_CONFIGURE 1
260261
USES_TERMINAL_BUILD 1
261262
${ep_log_configure_build_args}
@@ -326,6 +327,9 @@ if(CMakePythonDistributions_SUPERBUILD)
326327
)
327328
message(STATUS "SuperBuild - ${PROJECT_NAME}")
328329

330+
# This adds an "install" target in the top-level directory. The
331+
# target will simply include the install rules associated with the
332+
# inner build
329333
install(SCRIPT ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-build/cmake_install.cmake)
330334

331335
else()
@@ -335,12 +339,15 @@ else()
335339

336340
# Install CMakeProject
337341
install(CODE "
342+
message(STATUS \"Install CMake project\")
338343
include\(\"${CMakeProject_BINARY_DIR}/cmake_install.cmake\")
339344
")
340345

341346
#-----------------------------------------------------------------------------
342347
else()
343348

349+
set(CMAKE_INSTALL_MESSAGE "NEVER")
350+
344351
# Install all files from binary distribution
345352
file(GLOB_RECURSE binary_distribution_files
346353
LIST_DIRECTORIES FALSE

0 commit comments

Comments
 (0)