mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
added macro test
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user