diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-11-25 14:10:02 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-11-25 14:10:02 +0200 |
| commit | 89ed31adca6c97e2537d05bf7be7be3cbeae3a2f (patch) | |
| tree | 551c6ec8e564b190d97541402f1cb01fe0216743 /CMake/Wayland.cmake | |
| parent | 75331e5786b0c2ab234fddcba519f3484bd65c79 (diff) | |
cmake: fix ninja build
When using the ninja generator:
$ cmake -G Ninja <dir>
$ ninja -C <dir>
This commit fixes the warning:
ninja: warning: multiple rules generate bin/wayland-desktop-shell-protocol.c. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
Diffstat (limited to 'CMake/Wayland.cmake')
| -rw-r--r-- | CMake/Wayland.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/Wayland.cmake b/CMake/Wayland.cmake index 42f97b3b..c6015305 100644 --- a/CMake/Wayland.cmake +++ b/CMake/Wayland.cmake @@ -40,7 +40,7 @@ function(WAYLAND_ADD_PROTOCOL_CLIENT _sources _protocol _basename) get_filename_component(_infile ${_protocol} ABSOLUTE) set(_client_header "${CMAKE_CURRENT_BINARY_DIR}/wayland-${_basename}-client-protocol.h") - set(_code "${CMAKE_CURRENT_BINARY_DIR}/wayland-${_basename}-protocol.c") + set(_code "${CMAKE_CURRENT_BINARY_DIR}/wayland-${_basename}-client-protocol.c") add_custom_command(OUTPUT "${_client_header}" COMMAND ${WAYLAND_SCANNER_EXECUTABLE} client-header < ${_infile} > ${_client_header} @@ -62,7 +62,7 @@ function(WAYLAND_ADD_PROTOCOL_SERVER _sources _protocol _basename) get_filename_component(_infile ${_protocol} ABSOLUTE) set(_server_header "${CMAKE_CURRENT_BINARY_DIR}/wayland-${_basename}-server-protocol.h") - set(_code "${CMAKE_CURRENT_BINARY_DIR}/wayland-${_basename}-protocol.c") + set(_code "${CMAKE_CURRENT_BINARY_DIR}/wayland-${_basename}-server-protocol.c") add_custom_command(OUTPUT "${_server_header}" COMMAND ${WAYLAND_SCANNER_EXECUTABLE} server-header < ${_infile} > ${_server_header} |
