diff options
Diffstat (limited to 'Tests/ComplexRelativePaths/Executable/complex.cxx')
-rw-r--r-- | Tests/ComplexRelativePaths/Executable/complex.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 454b2c6..f1fe92d 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/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 |