File: ShowStatus.cmake

package info (click to toggle)
wbxml2 0.11.8%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,672 kB
  • sloc: ansic: 12,690; xml: 6,399; perl: 294; sh: 159; makefile: 7; cpp: 7
file content (22 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (5)
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 )