clean up printed message to make it more consistent

This commit is contained in:
Sébastien Loriot 2012-05-21 11:26:10 +00:00
parent 191add8a6f
commit ab88be4751
2 changed files with 18 additions and 15 deletions

View File

@ -1,4 +1,5 @@
# Top level CMakeLists.txt for CGAL-branchbuild # Top level CMakeLists.txt for CGAL-branchbuild
message( "== CMake setup ==" )
project(CGAL CXX) project(CGAL CXX)
# Minimal version of CMake: # Minimal version of CMake:
@ -94,6 +95,7 @@ endif()
# add option for duplicate file detection # add option for duplicate file detection
option( CGAL_REPORT_DUPLICATE_FILES "Switch on to start (naive) detection of duplicate source- and headerfiles in packages" OFF) option( CGAL_REPORT_DUPLICATE_FILES "Switch on to start (naive) detection of duplicate source- and headerfiles in packages" OFF)
message( "== CMake setup (DONE) ==\n" )
# and finally start actual build # and finally start actual build
add_subdirectory( Installation ) add_subdirectory( Installation )

View File

@ -21,17 +21,17 @@ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
endif() endif()
endif() endif()
message( STATUS "== Finished setup of CMake ==\n" )
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
# #
# -= PACKAGE SETUP =- # -= PACKAGE SETUP =-
# #
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
message( "== Setting paths ==" )
if ( CGAL_BRANCH_BUILD ) if ( CGAL_BRANCH_BUILD )
message( STATUS "== Build CGAL from ${CGAL_SCM_NAME}-branch: ${CGAL_SCM_BRANCH_NAME} ==" ) message( STATUS "Build CGAL from ${CGAL_SCM_NAME}-branch: ${CGAL_SCM_BRANCH_NAME}" )
# list packages # list packages
file(GLOB CGAL_CONFIGURED_PACKAGES RELATIVE ${CMAKE_SOURCE_DIR} "${CMAKE_SOURCE_DIR}/*") file(GLOB CGAL_CONFIGURED_PACKAGES RELATIVE ${CMAKE_SOURCE_DIR} "${CMAKE_SOURCE_DIR}/*")
@ -82,7 +82,7 @@ else ( CGAL_BRANCH_BUILD )
string(REGEX REPLACE "^/" "" CMAKE_SOURCE_DDIR ${CMAKE_SOURCE_CDIR}) string(REGEX REPLACE "^/" "" CMAKE_SOURCE_DDIR ${CMAKE_SOURCE_CDIR})
string(REPLACE "/" ";" CMAKE_SOURCE_PDIR ${CMAKE_SOURCE_DDIR}) string(REPLACE "/" ";" CMAKE_SOURCE_PDIR ${CMAKE_SOURCE_DDIR})
list(GET CMAKE_SOURCE_PDIR -1 CGAL_RELEASE_NAME) list(GET CMAKE_SOURCE_PDIR -1 CGAL_RELEASE_NAME)
message( STATUS "== Build CGAL from release: ${CGAL_RELEASE_NAME} ==" ) message( "== Build CGAL from release: ${CGAL_RELEASE_NAME} ==" )
set(CGAL_CONFIGURED_PACKAGES_NAMES ${CGAL_RELEASE_NAME}) set(CGAL_CONFIGURED_PACKAGES_NAMES ${CGAL_RELEASE_NAME})
@ -100,6 +100,9 @@ endif (CGAL_BRANCH_BUILD )
list(SORT CGAL_CONFIGURED_PACKAGES_NAMES) list(SORT CGAL_CONFIGURED_PACKAGES_NAMES)
message(STATUS "Packagenames: ${CGAL_CONFIGURED_PACKAGES_NAMES}") message(STATUS "Packagenames: ${CGAL_CONFIGURED_PACKAGES_NAMES}")
message( "== Setting paths (DONE) ==\n" )
message( "== Generate version files ==")
if ( CGAL_BRANCH_BUILD ) if ( CGAL_BRANCH_BUILD )
@ -111,8 +114,6 @@ if ( CGAL_BRANCH_BUILD )
file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/MINOR_NUMBER" CGAL_MINOR_VERSION REGEX "[0-9]*") file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/MINOR_NUMBER" CGAL_MINOR_VERSION REGEX "[0-9]*")
file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/BUGFIX_NUMBER" CGAL_BUGFIX_VERSION REGEX "[0-9]*") file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/BUGFIX_NUMBER" CGAL_BUGFIX_VERSION REGEX "[0-9]*")
message( STATUS "== Generate version files ==")
set(CGAL_BUILD_VERSION 900) set(CGAL_BUILD_VERSION 900)
file(REMOVE ${CMAKE_BINARY_DIR}/VERSION) file(REMOVE ${CMAKE_BINARY_DIR}/VERSION)
if (CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0) if (CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0)
@ -180,7 +181,7 @@ if ( CGAL_BRANCH_BUILD )
if (CGAL_REPORT_DUPLICATE_FILES) if (CGAL_REPORT_DUPLICATE_FILES)
message(STATUS "== Searching for duplicate files ==") message("== Searching for duplicate files ==")
foreach (package ${CGAL_CONFIGURED_PACKAGES}) foreach (package ${CGAL_CONFIGURED_PACKAGES})
@ -453,7 +454,7 @@ if ( CMAKE_COMPILER_IS_GNUCXX )
endif() endif()
message (STATUS "== Done with initialize ==\n") message( "== Generate version files (DONE) ==\n")
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
# #
@ -461,7 +462,7 @@ message (STATUS "== Done with initialize ==\n")
# #
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
message( STATUS "== Detect external libraries ==") message("== Detect external libraries ==")
include(CGAL_SetupFlags) include(CGAL_SetupFlags)
@ -480,7 +481,7 @@ endmacro()
# External libs Qt3 and Qt34are configured when Qt3 or Qt4 as lib of cgal are required # External libs Qt3 and Qt34are configured when Qt3 or Qt4 as lib of cgal are required
# Coin is used in KDS, but no FindCoin or FindCOIN exists # Coin is used in KDS, but no FindCoin or FindCOIN exists
# There exists FindF2C, FindIPE, FindMKL, but they are only used to support supporting libs # There exists FindF2C, FindIPE, FindMKL, but they are only used to support supporting libs
list (INSERT CGAL_SUPPORTING_3RD_PARTY_LIRARIES 0 GMP MPFR zlib OpenGL LEDA MPFI RS RS3 OpenNL TAUCS BLAS LAPACK QGLViewer ESTBL NTL) list (INSERT CGAL_SUPPORTING_3RD_PARTY_LIRARIES 0 GMP MPFR zlib OpenGL LEDA MPFI RS RS3 OpenNL TAUCS BLAS LAPACK QGLViewer ESBTL NTL)
if (NOT WIN32) if (NOT WIN32)
# GMPXX is not supported on WIN32 machines # GMPXX is not supported on WIN32 machines
list (INSERT CGAL_SUPPORTING_3RD_PARTY_LIRARIES 1 GMPXX) list (INSERT CGAL_SUPPORTING_3RD_PARTY_LIRARIES 1 GMPXX)
@ -543,7 +544,7 @@ include(CGAL_SetupDependencies)
option( CGAL_ALLOW_ALL_PRECONFIGURED_LIBS_COMPONENT "Select to allow option( CGAL_ALLOW_ALL_PRECONFIGURED_LIBS_COMPONENT "Select to allow
to use all preconfigured external libraries" OFF) to use all preconfigured external libraries" OFF)
message (STATUS "== Determined all external dependencies ==\n") message("== Detect external libraries (DONE) ==\n")
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
# #
@ -555,7 +556,7 @@ message (STATUS "== Determined all external dependencies ==\n")
# Note: CMake will not notice when files are added or removed # Note: CMake will not notice when files are added or removed
# but this is probably OK for the installation procedure. # but this is probably OK for the installation procedure.
message( STATUS "== Write compiler_config.h ==") message("== Write compiler_config.h ==")
file(GLOB all_config_tests "${CGAL_INSTALLATION_PACKAGE_DIR}/config/testfiles/*.cpp") file(GLOB all_config_tests "${CGAL_INSTALLATION_PACKAGE_DIR}/config/testfiles/*.cpp")
@ -641,7 +642,7 @@ set ( CGAL_INSTALL_MAN_DIR "share/man/man1"
CACHE STRING "The folder where manual pages for CGAL scripts will be installed, relative to CMAKE_INSTALL_PREFIX" CACHE STRING "The folder where manual pages for CGAL scripts will be installed, relative to CMAKE_INSTALL_PREFIX"
) )
message (STATUS "== Written compiler_config.h--\n") message("== Write compiler_config.h (DONE) ==\n")
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
# #
@ -649,7 +650,7 @@ message (STATUS "== Written compiler_config.h--\n")
# #
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
message( STATUS "== Generating build files ==") message("== Generating build files ==")
set(CGAL_LIBRARIES_DIR ${CMAKE_BINARY_DIR}/lib) set(CGAL_LIBRARIES_DIR ${CMAKE_BINARY_DIR}/lib)
@ -677,10 +678,10 @@ hide_variable(LIBRARY_OUTPUT_PATH)
# #
# Repeat some problems # Repeat some problems
# #
message("== Generating build files (DONE) ==\n")
if (CGAL_BRANCH_BUILD AND CGAL_REPORT_DUPLICATE_FILES ) if (CGAL_BRANCH_BUILD AND CGAL_REPORT_DUPLICATE_FILES )
message (STATUS "== Generated build files ==\n")
message( STATUS "Problems: ") message( STATUS "Problems: ")
if (CGAL_DUPLICATE_HEADER_FILES) if (CGAL_DUPLICATE_HEADER_FILES)