summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-06-04 09:02:50 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2003-06-04 09:02:50 -0400
commit48cd349c810d5bbe8baf49463e5361c19cc62df5 (patch)
tree0fbe66ccfd2b09fceec0a0e7c20b773c9d6018b3 /Tests
parent9ccc27864e57d92e175dad630f6abe8c7ba181ad (diff)
downloadcmake-48cd349c810d5bbe8baf49463e5361c19cc62df5.tar.gz
fixes for HP
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt4
-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 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
index cda3e0f680..0cb70dbab0 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 0ed4b76e5a..b15f90382f 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");