added macro test

This commit is contained in:
Ken Martin 2002-08-13 15:47:19 -04:00
parent 216c985f72
commit d38b48fcae
3 changed files with 33 additions and 3 deletions

View File

@ -3,8 +3,18 @@
#
PROJECT (Complex)
#
# Define a macro
#
MACRO(ASSERT value msg)
IF (NOT ${value})
MESSAGE ("Assertion failure:" ${msg} )
ENDIF (NOT ${value})
ENDMACRO(ASSERT)
# invoke the macro
ASSERT(Complex_BINARY_DIR "The PROJECT command is broken")
#
# Use the ansi CXX compile flag for building cmake
#

View File

@ -3,8 +3,18 @@
#
PROJECT (Complex)
#
# Define a macro
#
MACRO(ASSERT value msg)
IF (NOT ${value})
MESSAGE ("Assertion failure:" ${msg} )
ENDIF (NOT ${value})
ENDMACRO(ASSERT)
# invoke the macro
ASSERT(Complex_BINARY_DIR "The PROJECT command is broken")
#
# Use the ansi CXX compile flag for building cmake
#

View File

@ -3,8 +3,18 @@
#
PROJECT (Complex)
#
# Define a macro
#
MACRO(ASSERT value msg)
IF (NOT ${value})
MESSAGE ("Assertion failure:" ${msg} )
ENDIF (NOT ${value})
ENDMACRO(ASSERT)
# invoke the macro
ASSERT(Complex_BINARY_DIR "The PROJECT command is broken")
#
# Use the ansi CXX compile flag for building cmake
#