1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# Shows status of a option variable
#
# usage: SHOW_STATUS( <VariableName> <MessageText> )
#
# Copyright (C) 2007 Bjoern Ricks <b.ricks@fh-osnabrueck.de>
#
# Redistribution and use is allowed according to the terms of the New
# BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
MACRO( SHOW_STATUS _name _message )
IF( DEFINED ${_name} )
IF( ${ARGV2} )
MESSAGE( STATUS "${_message}\t\t${${_name}}\t(${${ARGV2}})" )
ELSE( ${ARGV2} )
MESSAGE( STATUS "${_message}\t\t${${_name}}" )
ENDIF( ${ARGV2} )
ELSE( DEFINED ${_name} )
MESSAGE( STATUS "${_message}\t\tOFF" )
ENDIF( DEFINED ${_name})
ENDMACRO( SHOW_STATUS )
|