From cc44d6cb0b49a09e530472afc90591ff51507808 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 21 Feb 2009 22:41:30 +0000 Subject: [PATCH] Hide messages when using cmake-gui. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28580 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/CMakeLists.txt | 44 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 71d930641d..baec915e79 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -66,11 +66,11 @@ foreach(_c_l ${_config_lines} ) endforeach(_c_l) if(UseVersionSuffix) - message("-- Using versioned PACKAGE. Disable with -DUseVersionSuffix=0") + message(STATUS "-- Using versioned PACKAGE. Disable with -DUseVersionSuffix=0") set(PACKAGE ${PACKAGE_BASE}${LYX_INSTALL_SUFFIX}) set(PROGRAM_SUFFIX "${LYX_INSTALL_SUFFIX}") else() - message("-- PACKAGE not versioned, to enable use -DUseVersionSuffix=1") + message(STATUS "-- PACKAGE not versioned, to enable use -DUseVersionSuffix=1") set(PACKAGE ${PACKAGE_BASE}) set(PROGRAM_SUFFIX "") endif() @@ -194,20 +194,20 @@ if(use_external_libintl) add_definitions(-DHAVE_GETTEXT) endif() -message("") +message(STATUS "") if(nls OR all) set(nls TRUE CACHE TYPE STRING) add_definitions(-DENABLE_NLS=1) - message("----- Building with ENABLE_NLS") + message(STATUS "----- Building with ENABLE_NLS") else() - message("----- No nls, to enable use -Dnls=1") + message(STATUS "----- No nls, to enable use -Dnls=1") endif() set(nls) if(ASPELL_FOUND) add_definitions(-DUSE_ASPELL=1) - message("----- Building with USE_ASPELL") + message(STATUS "----- Building with USE_ASPELL") else() - message("----- No aspell, to get more information use -Daspell=1") + message(STATUS "----- No aspell, to get more information use -Daspell=1") endif() set(all) @@ -216,9 +216,9 @@ if(WIN32) set(noconsole TRUE CACHE TYPE STRING) set(WIN32_CONSOLE WIN32) set(LYX_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARY}) - message("----- Console disabled") + message(STATUS "----- Console disabled") else() - message("----- Console enabled, disable it with -Dnoconsole=1") + message(STATUS "----- Console enabled, disable it with -Dnoconsole=1") endif() if(MSVC) add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNOMINMAX) @@ -229,7 +229,7 @@ if(WIN32) endif() endif() -message("") +message(STATUS "") foreach(_v PACKAGE PACKAGE_VERSION PROGRAM_SUFFIX LYX_DATE LYX_DIR_VER LYX_USERDIR_VER LYX_ABS_TOP_SRCDIR @@ -238,17 +238,17 @@ foreach(_v PACKAGE PACKAGE_VERSION message(FATAL_ERROR "${_v} not defined") endif() string(SUBSTRING "${_v} " 0 28 _v1) - message("----- ${_v1}: ${${_v}}") + message(STATUS "----- ${_v1}: ${${_v}}") endforeach(_v) -message("") +message(STATUS "") add_definitions(-DBOOST_USER_CONFIG="") if(MSVC AND NOT disable-pch AND NOT MERGE_FILES) - message("-----") - message("----- using precompiled headers, disable with -Ddisable-pch=1") - message("-----") + message(STATUS "-----") + message(STATUS "----- using precompiled headers, disable with -Ddisable-pch=1") + message(STATUS "-----") configure_file(${CMAKE_SOURCE_DIR}/pcheaders.h ${CMAKE_BINARY_DIR}/pcheaders.h) configure_file(${CMAKE_SOURCE_DIR}/config.cpp.cmake @@ -270,9 +270,9 @@ if(MSVC AND NOT disable-pch AND NOT MERGE_FILES) "${CMAKE_CXX_FLAGS_MINSIZEREL} /DLYX_PCH_STL /DLYX_PCH_BOOST") else() if(MSVC) - message("-----") - message("----- precompiled headers disabled, enable with -Ddisable-pch=0") - message("-----") + message(STATUS "-----") + message(STATUS "----- precompiled headers disabled, enable with -Ddisable-pch=0") + message(STATUS "-----") endif() set(disable-pch TRUE CACHE TYPE STRING) macro(lyx_add_msvc_pch) @@ -348,10 +348,10 @@ if(MSVC) endif() - message("----- Warning level : ${CMAKE_CXX_WARNING_LEVEL} ${WARNING_LEVEL_MESSAGE}") - message("----- Warnings as errors : ${MSVC_W_ERROR}") - message("----- Warnings disabled : ${MSVC_W_DISABLE}") - message("") + message(STATUS "----- Warning level : ${CMAKE_CXX_WARNING_LEVEL} ${WARNING_LEVEL_MESSAGE}") + message(STATUS "----- Warnings as errors : ${MSVC_W_ERROR}") + message(STATUS "----- Warnings disabled : ${MSVC_W_DISABLE}") + message(STATUS "") endif()