Code

cmake: fix error in UseGlibMarshal.cmake
authorjohanengelen <johanengelen@users.sourceforge.net>
Sat, 5 Apr 2008 16:49:31 +0000 (16:49 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sat, 5 Apr 2008 16:49:31 +0000 (16:49 +0000)
CMakeScripts/UseGlibMarshal.cmake

index f9de62f4ae87b455110a3c9c469ed7db1b5c15a5..d6e3b2cb3995c42b0cef8693300be0d382bcca9c 100644 (file)
@@ -14,12 +14,12 @@ FIND_PROGRAM(GLIB_MARSHAL_EXECUTABLE NAMES glib-genmarshal PATHS /usr/local/bin
 MACRO(GLIB_MARSHAL GLIB_MARSHAL_PREFIX GLIB_MARSHAL_LIST GLIB_MARSHAL_OUTPUT_LOCATION)
     IF(GLIB_MARSHAL_EXECUTABLE)
     SET(GLIB_MARSHAL_OUTPUT_TEMP)
-    SET(GLIB_MARSHAL_OUTPUT_EXTRA_LINE '#include "${GLIB_MARSHAL_PREFIX}.h"' )
+    SET(GLIB_MARSHAL_OUTPUT_EXTRA_LINE "#include /"${GLIB_MARSHAL_PREFIX}.h/"" )
 
-        EXECUTE_PROCESS(COMMAND ${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --header ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_LIST}
-                                OUTPUT_VARIABLE ${GLIB_MARSHAL_OUTPUT_HEADER}
-                        COMMAND ${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --body ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_LIST}
-                                OUTPUT_VARIABLE ${GLIB_MARSHAL_OUTPUT_TEMP})
+        EXECUTE_PROCESS(COMMAND "${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --header ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_LIST}"
+                                OUTPUT_VARIABLE "${GLIB_MARSHAL_OUTPUT_HEADER}" )
+        EXECUTE_PROCESS(COMMAND "${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --body ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_LIST}"
+                                OUTPUT_VARIABLE "${GLIB_MARSHAL_OUTPUT_TEMP}" )
                         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}")