diff options
author | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2021-03-25 11:25:42 +0200 |
---|---|---|
committer | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2021-03-25 11:29:09 +0200 |
commit | 04f4675cbb874b53f4e6024ecea5b0d9c472bf7c (patch) | |
tree | 1e9992b638f6e89e92ab4d5b34f0068812ed43fd | |
parent | b2849fc1e58cfdfb8676ce84ec45727a53cabc05 (diff) | |
download | extra-cmake-modules-04f4675cbb874b53f4e6024ecea5b0d9c472bf7c.tar.gz extra-cmake-modules-04f4675cbb874b53f4e6024ecea5b0d9c472bf7c.tar.bz2 |
Fix warning about wayland-scanner code arg
The code argument has been deprecated in favor of public-code and
private-code options.
In general, it is highly advised to use the private-code option, but we
cannot do it because it will break the ABI.
-rw-r--r-- | find-modules/FindWaylandScanner.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/find-modules/FindWaylandScanner.cmake b/find-modules/FindWaylandScanner.cmake index 08b0650b..e0e68c45 100644 --- a/find-modules/FindWaylandScanner.cmake +++ b/find-modules/FindWaylandScanner.cmake @@ -111,7 +111,7 @@ function(ecm_add_wayland_client_protocol out_var) DEPENDS ${_infile} VERBATIM) add_custom_command(OUTPUT "${_code}" - COMMAND ${WaylandScanner_EXECUTABLE} code ${_infile} ${_code} + COMMAND ${WaylandScanner_EXECUTABLE} public-code ${_infile} ${_code} DEPENDS ${_infile} ${_client_header} VERBATIM) list(APPEND ${out_var} "${_client_header}" "${_code}") |