diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-06-04 13:02:50 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-06-04 13:02:50 (GMT) |
commit | 48cd349c810d5bbe8baf49463e5361c19cc62df5 (patch) | |
tree | 0fbe66ccfd2b09fceec0a0e7c20b773c9d6018b3 | |
parent | 9ccc27864e57d92e175dad630f6abe8c7ba181ad (diff) | |
download | CMake-48cd349c810d5bbe8baf49463e5361c19cc62df5.zip CMake-48cd349c810d5bbe8baf49463e5361c19cc62df5.tar.gz CMake-48cd349c810d5bbe8baf49463e5361c19cc62df5.tar.bz2 |
fixes for HP
-rw-r--r-- | Tests/CustomCommand/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/CustomCommand/generator.cxx (renamed from Tests/CustomCommand/generator.c) | 2 | ||||
-rw-r--r-- | Tests/CustomCommand/wrapper.cxx (renamed from Tests/CustomCommand/wrapper.c) | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 19a8399..4ac86e5 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 index cda3e0f..0cb70db 100644 --- a/Tests/CustomCommand/generator.c +++ b/Tests/CustomCommand/generator.cxx @@ -1,6 +1,6 @@ #include <stdio.h> -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 index 0ed4b76..b15f903 100644 --- a/Tests/CustomCommand/wrapper.c +++ b/Tests/CustomCommand/wrapper.cxx @@ -1,6 +1,6 @@ #include <stdio.h> -main(int argc, char *argv[]) +int main(int argc, char *argv[]) { FILE *fp = fopen(argv[1],"w"); |