summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Library
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-15 17:59:29 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-15 17:59:29 (GMT)
commit23a154941bd44ed1fec701e7c8367e32ab19f759 (patch)
tree0a1f58719ce9757824392ccb447ec3af180e2666 /Tests/Complex/Library
parent504d0bc3b38574d8394995b589214ce9cb0f6d3a (diff)
downloadCMake-23a154941bd44ed1fec701e7c8367e32ab19f759.zip
CMake-23a154941bd44ed1fec701e7c8367e32ab19f759.tar.gz
CMake-23a154941bd44ed1fec701e7c8367e32ab19f759.tar.bz2
ENH: Add test for REMOVE_DEFINITION
Diffstat (limited to 'Tests/Complex/Library')
-rw-r--r--Tests/Complex/Library/CMakeLists.txt2
-rw-r--r--Tests/Complex/Library/file2.cxx4
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Complex/Library/CMakeLists.txt b/Tests/Complex/Library/CMakeLists.txt
index 488f4e7..7c58fad 100644
--- a/Tests/Complex/Library/CMakeLists.txt
+++ b/Tests/Complex/Library/CMakeLists.txt
@@ -1,3 +1,5 @@
+REMOVE_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
+
#
# Small utility used to create file
# UTILITY_SOURCE is used for coverage and for getting the exact name
diff --git a/Tests/Complex/Library/file2.cxx b/Tests/Complex/Library/file2.cxx
index b52e547..863fcaa 100644
--- a/Tests/Complex/Library/file2.cxx
+++ b/Tests/Complex/Library/file2.cxx
@@ -1,5 +1,9 @@
#include <string.h>
+#ifdef CMAKE_IS_REALLY_FUN
+This is a problem. Looks like REMOVE_DEFINITION does not work
+#endif
+
int file2()
{
return 1;