Hide messages when using cmake-gui.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28580 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-02-21 22:41:30 +00:00
parent a833b6f097
commit cc44d6cb0b

View File

@ -66,11 +66,11 @@ foreach(_c_l ${_config_lines} )
endforeach(_c_l) endforeach(_c_l)
if(UseVersionSuffix) 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(PACKAGE ${PACKAGE_BASE}${LYX_INSTALL_SUFFIX})
set(PROGRAM_SUFFIX "${LYX_INSTALL_SUFFIX}") set(PROGRAM_SUFFIX "${LYX_INSTALL_SUFFIX}")
else() 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(PACKAGE ${PACKAGE_BASE})
set(PROGRAM_SUFFIX "") set(PROGRAM_SUFFIX "")
endif() endif()
@ -194,20 +194,20 @@ if(use_external_libintl)
add_definitions(-DHAVE_GETTEXT) add_definitions(-DHAVE_GETTEXT)
endif() endif()
message("") message(STATUS "")
if(nls OR all) if(nls OR all)
set(nls TRUE CACHE TYPE STRING) set(nls TRUE CACHE TYPE STRING)
add_definitions(-DENABLE_NLS=1) add_definitions(-DENABLE_NLS=1)
message("----- Building with ENABLE_NLS") message(STATUS "----- Building with ENABLE_NLS")
else() else()
message("----- No nls, to enable use -Dnls=1") message(STATUS "----- No nls, to enable use -Dnls=1")
endif() endif()
set(nls) set(nls)
if(ASPELL_FOUND) if(ASPELL_FOUND)
add_definitions(-DUSE_ASPELL=1) add_definitions(-DUSE_ASPELL=1)
message("----- Building with USE_ASPELL") message(STATUS "----- Building with USE_ASPELL")
else() else()
message("----- No aspell, to get more information use -Daspell=1") message(STATUS "----- No aspell, to get more information use -Daspell=1")
endif() endif()
set(all) set(all)
@ -216,9 +216,9 @@ if(WIN32)
set(noconsole TRUE CACHE TYPE STRING) set(noconsole TRUE CACHE TYPE STRING)
set(WIN32_CONSOLE WIN32) set(WIN32_CONSOLE WIN32)
set(LYX_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARY}) set(LYX_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARY})
message("----- Console disabled") message(STATUS "----- Console disabled")
else() else()
message("----- Console enabled, disable it with -Dnoconsole=1") message(STATUS "----- Console enabled, disable it with -Dnoconsole=1")
endif() endif()
if(MSVC) if(MSVC)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNOMINMAX) add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNOMINMAX)
@ -229,7 +229,7 @@ if(WIN32)
endif() endif()
endif() endif()
message("") message(STATUS "")
foreach(_v PACKAGE PACKAGE_VERSION foreach(_v PACKAGE PACKAGE_VERSION
PROGRAM_SUFFIX LYX_DATE LYX_DIR_VER LYX_USERDIR_VER PROGRAM_SUFFIX LYX_DATE LYX_DIR_VER LYX_USERDIR_VER
LYX_ABS_TOP_SRCDIR LYX_ABS_TOP_SRCDIR
@ -238,17 +238,17 @@ foreach(_v PACKAGE PACKAGE_VERSION
message(FATAL_ERROR "${_v} not defined") message(FATAL_ERROR "${_v} not defined")
endif() endif()
string(SUBSTRING "${_v} " 0 28 _v1) string(SUBSTRING "${_v} " 0 28 _v1)
message("----- ${_v1}: ${${_v}}") message(STATUS "----- ${_v1}: ${${_v}}")
endforeach(_v) endforeach(_v)
message("") message(STATUS "")
add_definitions(-DBOOST_USER_CONFIG="<config.h>") add_definitions(-DBOOST_USER_CONFIG="<config.h>")
if(MSVC AND NOT disable-pch AND NOT MERGE_FILES) if(MSVC AND NOT disable-pch AND NOT MERGE_FILES)
message("-----") message(STATUS "-----")
message("----- using precompiled headers, disable with -Ddisable-pch=1") message(STATUS "----- using precompiled headers, disable with -Ddisable-pch=1")
message("-----") message(STATUS "-----")
configure_file(${CMAKE_SOURCE_DIR}/pcheaders.h configure_file(${CMAKE_SOURCE_DIR}/pcheaders.h
${CMAKE_BINARY_DIR}/pcheaders.h) ${CMAKE_BINARY_DIR}/pcheaders.h)
configure_file(${CMAKE_SOURCE_DIR}/config.cpp.cmake 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") "${CMAKE_CXX_FLAGS_MINSIZEREL} /DLYX_PCH_STL /DLYX_PCH_BOOST")
else() else()
if(MSVC) if(MSVC)
message("-----") message(STATUS "-----")
message("----- precompiled headers disabled, enable with -Ddisable-pch=0") message(STATUS "----- precompiled headers disabled, enable with -Ddisable-pch=0")
message("-----") message(STATUS "-----")
endif() endif()
set(disable-pch TRUE CACHE TYPE STRING) set(disable-pch TRUE CACHE TYPE STRING)
macro(lyx_add_msvc_pch) macro(lyx_add_msvc_pch)
@ -348,10 +348,10 @@ if(MSVC)
endif() endif()
message("----- Warning level : ${CMAKE_CXX_WARNING_LEVEL} ${WARNING_LEVEL_MESSAGE}") message(STATUS "----- Warning level : ${CMAKE_CXX_WARNING_LEVEL} ${WARNING_LEVEL_MESSAGE}")
message("----- Warnings as errors : ${MSVC_W_ERROR}") message(STATUS "----- Warnings as errors : ${MSVC_W_ERROR}")
message("----- Warnings disabled : ${MSVC_W_DISABLE}") message(STATUS "----- Warnings disabled : ${MSVC_W_DISABLE}")
message("") message(STATUS "")
endif() endif()