summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
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 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");