Code

Cmake: UseGlibMarshal update
authorverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 5 Apr 2008 17:19:47 +0000 (17:19 +0000)
committerverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 5 Apr 2008 17:19:47 +0000 (17:19 +0000)
CMakeScripts/UseGlibMarshal.cmake

index 5843d00afc51985d12f8b5052f52f2d7cad9da75..6a6167bed82c769d7141d1ba58427a34524ff6ed 100644 (file)
@@ -19,9 +19,10 @@ MACRO(GLIB_MARSHAL GLIB_MARSHAL_PREFIX GLIB_MARSHAL_LIST GLIB_MARSHAL_OUTPUT_LOC
         EXECUTE_PROCESS(COMMAND "${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --header ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_LIST}"
                                 RESULT_VARIABLE GLIB_MARSHAL_OUTPUT_HEADER )
         EXECUTE_PROCESS(COMMAND "${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --body ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_LIST}"
-                                RESULT_VARIABLE GLIB_MARSHAL_OUTPUT_TEMP )
-                        SET(GLIB_MARSHAL_OUTPUT_CPP "${GLIB_MARSHAL_OUTPUT_EXTRA_LINE}${GLIB_MARSHAL_OUTPUT_TEMP}")
+                                RESULT_VARIABLE GLIB_MARSHAL_OUTPUT_CPP )
+#                        SET(GLIB_MARSHAL_OUTPUT_CPP "${GLIB_MARSHAL_OUTPUT_EXTRA_LINE}${GLIB_MARSHAL_OUTPUT_TEMP}")
                         FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${GLIB_MARSHAL_PREFIX}.h "${GLIB_MARSHAL_OUTPUT_HEADER}")
-                        FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${GLIB_MARSHAL_PREFIX}.cpp "${GLIB_MARSHAL_OUTPUT_CPP}")
+                        FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${GLIB_MARSHAL_PREFIX}.cpp "${GLIB_MARSHAL_OUTPUT_EXTRA_LINE}")
+                        FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/${GLIB_MARSHAL_PREFIX}.cpp "${GLIB_MARSHAL_OUTPUT_CPP}")
     ENDIF(GLIB_MARSHAL_EXECUTABLE)
 ENDMACRO(GLIB_MARSHAL)