summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-13 19:47:19 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-08-13 19:47:19 (GMT)
commitd38b48fcae83de52819ce6ed98355485f858a9f0 (patch)
treedb90b383f67f8dde9a6649a35349caf1f560c3de
parent216c985f7213d784bcff15797badceff659a35d3 (diff)
downloadCMake-d38b48fcae83de52819ce6ed98355485f858a9f0.zip
CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.tar.gz
CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.tar.bz2
added macro test
-rw-r--r--Tests/Complex/CMakeLists.txt12
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt12
-rw-r--r--Tests/ComplexRelativePaths/CMakeLists.txt12
3 files changed, 33 insertions, 3 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index 068b47e..4b05d07 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -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
#
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index 068b47e..4b05d07 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -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
#
diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt
index 068b47e..4b05d07 100644
--- a/Tests/ComplexRelativePaths/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/CMakeLists.txt
@@ -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
#