Bill Hoffman %!s(int64=22) %!d(string=hai) anos
pai
achega
48cd349c81

+ 2 - 2
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

+ 1 - 1
Tests/CustomCommand/generator.c → 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");
   

+ 1 - 1
Tests/CustomCommand/wrapper.c → 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");