diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-03-27 18:54:31 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-03-27 18:54:31 (GMT) |
commit | 85b286f04e85f8acb8add3fb6d00d362d34f72dc (patch) | |
tree | 3283e51323f46865dbceb3df966807719f28acea /Tests/ComplexOneConfig/Executable/complex.cxx | |
parent | 1623dc2183996810c00417e9bc532ce38f7c893e (diff) | |
download | CMake-85b286f04e85f8acb8add3fb6d00d362d34f72dc.zip CMake-85b286f04e85f8acb8add3fb6d00d362d34f72dc.tar.gz CMake-85b286f04e85f8acb8add3fb6d00d362d34f72dc.tar.bz2 |
ENH: add a more stressing FOREACH test.
Diffstat (limited to 'Tests/ComplexOneConfig/Executable/complex.cxx')
-rw-r--r-- | Tests/ComplexOneConfig/Executable/complex.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 454b2c6..f1fe92d 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -359,6 +359,21 @@ int main() } #endif +#ifndef FOREACH_CONCAT + cmFailed("the FOREACH, SET or CONFIGURE_FILE command is broken, " + "FOREACH_CONCAT is not defined."); +#else + if(strcmp(FOREACH_CONCAT, "abcdefg") != 0) + { + cmFailed("the FOREACH, SET or CONFIGURE_FILE command is broken, " + "FOREACH_CONCAT == ", FOREACH_CONCAT); + } + else + { + cmPassed("FOREACH_CONCAT == ", FOREACH_CONCAT); + } +#endif + // ---------------------------------------------------------------------- // Test FIND_FILE, FIND_PATH and various GET_FILENAME_COMPONENT combinations |