From a83675a991789475165aee2af2b1ad5c0db30eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 31 Jul 2012 07:18:28 +0000 Subject: [PATCH] Sanitize output for Release mode git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@633 fdac6126-5c0c-442c-9429-916003d36597 --- cmake/ACGOutput.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/ACGOutput.cmake b/cmake/ACGOutput.cmake index 569c729a..de488cf8 100644 --- a/cmake/ACGOutput.cmake +++ b/cmake/ACGOutput.cmake @@ -29,7 +29,14 @@ function (acg_print_configure_header _id _name) acg_color_message ("${_escape}[40;37m* *${_escape}[0m") acg_color_message ("${_escape}[40;37m* Package : ${_escape}[32m${_project} ${_escape}[37m *${_escape}[0m") acg_color_message ("${_escape}[40;37m* Version : ${_escape}[32m${_version} ${_escape}[37m *${_escape}[0m") - acg_color_message ("${_escape}[40;37m* Type : ${_escape}[32m${CMAKE_BUILD_TYPE} ${_escape}[37m *${_escape}[0m") + + # Just artistic. remove 2 spaces for release to make it look nicer ;-) + if (${CMAKE_BUILD_TYPE} MATCHES "Debug") + acg_color_message ("${_escape}[40;37m* Type : ${_escape}[32m${CMAKE_BUILD_TYPE} ${_escape}[37m *${_escape}[0m") + else() + acg_color_message ("${_escape}[40;37m* Type : ${_escape}[32m${CMAKE_BUILD_TYPE} ${_escape}[37m *${_escape}[0m") + endif() + acg_color_message ("${_escape}[40;37m************************************************************${_escape}[0m") endfunction ()