From 48cd349c810d5bbe8baf49463e5361c19cc62df5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 4 Jun 2003 09:02:50 -0400 Subject: [PATCH] fixes for HP --- Tests/CustomCommand/CMakeLists.txt | 4 ++-- Tests/CustomCommand/{generator.c => generator.cxx} | 2 +- Tests/CustomCommand/{wrapper.c => wrapper.cxx} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename Tests/CustomCommand/{generator.c => generator.cxx} (78%) rename Tests/CustomCommand/{wrapper.c => wrapper.cxx} (78%) diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 19a8399034..4ac86e58b8 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -20,7 +20,7 @@ SET (EXECUTABLE_OUTPUT_PATH # ################################################################ # add the executable that will generate the file -ADD_EXECUTABLE(generator generator.c) +ADD_EXECUTABLE(generator generator.cxx) # the folowing assumes that a cmSourceFile # is instantiated for the output, with GENERATED 1 @@ -37,7 +37,7 @@ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/generated.c # ################################################################ # add the executable that will generate the file -ADD_EXECUTABLE(wrapper wrapper.c) +ADD_EXECUTABLE(wrapper wrapper.cxx) # the following assumes that a cmSourceFile # is instantiated for the output, with GENERATED 1 diff --git a/Tests/CustomCommand/generator.c b/Tests/CustomCommand/generator.cxx similarity index 78% rename from Tests/CustomCommand/generator.c rename to Tests/CustomCommand/generator.cxx index cda3e0f680..0cb70dbab0 100644 --- a/Tests/CustomCommand/generator.c +++ b/Tests/CustomCommand/generator.cxx @@ -1,6 +1,6 @@ #include -main(int argc, char *argv[]) +int main(int argc, char *argv[]) { FILE *fp = fopen(argv[1],"w"); diff --git a/Tests/CustomCommand/wrapper.c b/Tests/CustomCommand/wrapper.cxx similarity index 78% rename from Tests/CustomCommand/wrapper.c rename to Tests/CustomCommand/wrapper.cxx index 0ed4b76e5a..b15f90382f 100644 --- a/Tests/CustomCommand/wrapper.c +++ b/Tests/CustomCommand/wrapper.cxx @@ -1,6 +1,6 @@ #include -main(int argc, char *argv[]) +int main(int argc, char *argv[]) { FILE *fp = fopen(argv[1],"w");