Code

cmake: remove quotes from execute_command. now it works.
authorjohanengelen <johanengelen@users.sourceforge.net>
Sat, 5 Apr 2008 18:40:56 +0000 (18:40 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sat, 5 Apr 2008 18:40:56 +0000 (18:40 +0000)
CMakeScripts/UseGlibMarshal.cmake

index 18c0a3234ffa1daa95eea4d58d69fc217ff6ed5c..6f81730e5a2e943dae2b7ad7610f1630b1116202 100644 (file)
@@ -15,10 +15,11 @@ MACRO(GLIB_MARSHAL GLIB_MARSHAL_PREFIX GLIB_MARSHAL_FILE GLIB_MARSHAL_OUTPUT_LOC
     IF(GLIB_MARSHAL_EXECUTABLE)
         SET(GLIB_MARSHAL_OUTPUT_EXTRA_LINE "#include \"${GLIB_MARSHAL_FILE}.h\" \n" )
 
-        EXECUTE_PROCESS(COMMAND "${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --header ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_FILE}.list"
-                                RESULT_VARIABLE GLIB_MARSHAL_OUTPUT_HEADER )
-        EXECUTE_PROCESS(COMMAND "${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --body ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_FILE}.list"
-                                RESULT_VARIABLE GLIB_MARSHAL_OUTPUT_CPP )
+        MESSAGE(STATUS "Generating header and sourcefiles from ${GLIB_MARSHAL_FILE}.list (Glib-Marshal)")
+        EXECUTE_PROCESS(COMMAND ${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --header ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_FILE}.list
+                                OUTPUT_VARIABLE GLIB_MARSHAL_OUTPUT_HEADER )
+        EXECUTE_PROCESS(COMMAND ${GLIB_MARSHAL_EXECUTABLE} --prefix=${GLIB_MARSHAL_PREFIX} --body ${CMAKE_CURRENT_SOURCE_DIR}/${GLIB_MARSHAL_FILE}.list
+                                OUTPUT_VARIABLE GLIB_MARSHAL_OUTPUT_CPP )
 
         FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${GLIB_MARSHAL_FILE}.h "${GLIB_MARSHAL_OUTPUT_HEADER}")
         FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${GLIB_MARSHAL_FILE}.cpp "${GLIB_MARSHAL_OUTPUT_EXTRA_LINE}")