set CMAKE_INSTALL_MESSAGE to NEVER (#12392)

Summary:
this removes a bunch of spam output from the build. This is

(1) cleaner
(2) a couple seconds faster in some cases, e.g. my slow-rendering emacs-based shell
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12392

Differential Revision: D10225340

Pulled By: anderspapitto

fbshipit-source-id: 477ee76d24f8db50084b1e261db8c22733de923b
This commit is contained in:
Anders Papitto
2018-10-05 15:55:01 -07:00
committed by Facebook Github Bot
parent 54d9823d00
commit 57fcc57f31
2 changed files with 2 additions and 3 deletions

View File

@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
# ---[ Project and semantic versioning.
project(Caffe2 CXX C)
set(CMAKE_INSTALL_MESSAGE NEVER)
set(CMAKE_CXX_STANDARD 11)
if (NOT MSVC)
set(CMAKE_C_STANDARD 11)

View File

@ -162,7 +162,6 @@ function build() {
# installed libraries instead
${CMAKE_VERSION} ../../$1 -DCMAKE_MODULE_PATH="$BASE_DIR/cmake/Modules_CUDA_fix" \
${CMAKE_GENERATOR} \
-DCMAKE_INSTALL_MESSAGE="LAZY" \
-DTorch_FOUND="1" \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
-DCMAKE_C_FLAGS="$BUILD_C_FLAGS $USER_CFLAGS" \
@ -226,7 +225,6 @@ function build_nccl() {
if [[ $RERUN_CMAKE -eq 1 ]] || [ ! -f CMakeCache.txt ]; then
${CMAKE_VERSION} ../../nccl -DCMAKE_MODULE_PATH="$BASE_DIR/cmake/Modules_CUDA_fix" \
${CMAKE_GENERATOR} \
-DCMAKE_INSTALL_MESSAGE="LAZY" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
-DCMAKE_C_FLAGS="$C_FLAGS $USER_CFLAGS" \
@ -270,7 +268,6 @@ function build_caffe2() {
if [[ $RERUN_CMAKE -eq 1 ]] || [ ! -f CMakeCache.txt ]; then
${CMAKE_VERSION} $BASE_DIR \
${CMAKE_GENERATOR} \
-DCMAKE_INSTALL_MESSAGE="LAZY" \
-DPYTHON_EXECUTABLE=$PYTORCH_PYTHON \
-DBUILDING_WITH_TORCH_LIBS=ON \
-DTORCH_BUILD_VERSION="$PYTORCH_BUILD_VERSION" \