diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-03 21:40:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-03 21:40:51 (GMT) |
commit | 2c73d2e0f3c5ab4da8ef78bd99309522c05349a0 (patch) | |
tree | fac80fa3d96669f88059ad5ca5fb847b9b1bad7b /Tests/Complex/Executable/complex.cxx | |
parent | b08a151722ecb23383079f27389313f34ceba6cd (diff) | |
download | CMake-2c73d2e0f3c5ab4da8ef78bd99309522c05349a0.zip CMake-2c73d2e0f3c5ab4da8ef78bd99309522c05349a0.tar.gz CMake-2c73d2e0f3c5ab4da8ef78bd99309522c05349a0.tar.bz2 |
ENH: add new cmakedefine01 feature from bug report 2603
Diffstat (limited to 'Tests/Complex/Executable/complex.cxx')
-rw-r--r-- | Tests/Complex/Executable/complex.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 43eb109..c8b6f00 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -1114,7 +1114,22 @@ int main() #else cmFailed("Generated header included by non-generated source failed."); #endif - + if(SHOULD_BE_ZERO == 0) + { + cmPassed("cmakedefine01 is working for 0"); + } + else + { + cmFailed("cmakedefine01 is not working for 0"); + } + if(SHOULD_BE_ONE == 1) + { + cmPassed("cmakedefine01 is working for 1"); + } + else + { + cmFailed("cmakedefine01 is not working for 1"); + } #ifdef FORCE_TEST cmFailed("CMake SET CACHE FORCE"); #else |