diff options
author | Brad King <brad.king@kitware.com> | 2006-06-02 12:19:16 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-02 12:19:16 -0400 |
commit | e1c110d2448e09ca087b9ac42dac04934bad8de6 (patch) | |
tree | ac626be76c3d0df30d8a35cce08539179cd5c1d9 /Tests/Wrapping/Wrap.c | |
parent | 886c559518ebf39ac91d6048c9c92320a9cde82e (diff) | |
download | cmake-e1c110d2448e09ca087b9ac42dac04934bad8de6.tar.gz |
BUG: Custom commands should actually generate the files they claim to generate.
Diffstat (limited to 'Tests/Wrapping/Wrap.c')
-rw-r--r-- | Tests/Wrapping/Wrap.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Tests/Wrapping/Wrap.c b/Tests/Wrapping/Wrap.c index 5b47c960ea..8131639c98 100644 --- a/Tests/Wrapping/Wrap.c +++ b/Tests/Wrapping/Wrap.c @@ -1,7 +1,17 @@ #include <stdio.h> -int main() +int main(int argc, const char* argv[]) { - printf("Hello\n"); + FILE* fout = fopen(argv[argc-1], "w"); + printf("Wrap creating \"%s\"\n", argv[argc-1]); + if(fout) + { + fprintf(fout, "int foo() { return 0; }\n"); + fclose(fout); + } + else + { + return -1; + } return 0; } |