瀏覽代碼

Wayland: Scanner tool has input and output args

Camilla Löwy 5 年之前
父節點
當前提交
a62a6c5019
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/CMakeLists.txt

+ 2 - 4
src/CMakeLists.txt

@@ -51,15 +51,13 @@ if (_GLFW_WAYLAND)
 
 
     macro(wayland_generate protocol_file output_file)
     macro(wayland_generate protocol_file output_file)
           add_custom_command(OUTPUT "${output_file}.h"
           add_custom_command(OUTPUT "${output_file}.h"
-              COMMAND "${WAYLAND_SCANNER_EXECUTABLE}" client-header
-              < "${protocol_file}" > "${output_file}.h"
+              COMMAND "${WAYLAND_SCANNER_EXECUTABLE}" client-header "${protocol_file}" "${output_file}.h"
               DEPENDS "${protocol_file}"
               DEPENDS "${protocol_file}"
               VERBATIM)
               VERBATIM)
           list(APPEND GLFW_WAYLAND_PROTOCOL_SOURCES "${output_file}.h)"
           list(APPEND GLFW_WAYLAND_PROTOCOL_SOURCES "${output_file}.h)"
 
 
           add_custom_command(OUTPUT "${output_file}.c"
           add_custom_command(OUTPUT "${output_file}.c"
-              COMMAND "${WAYLAND_SCANNER_EXECUTABLE}" private-code
-              < "${protocol_file}" > "${output_file}.c"
+              COMMAND "${WAYLAND_SCANNER_EXECUTABLE}" private-code "${protocol_file}" "${output_file}.c"
               DEPENDS "${protocol_file}"
               DEPENDS "${protocol_file}"
               VERBATIM)
               VERBATIM)