From 04f4675cbb874b53f4e6024ecea5b0d9c472bf7c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 25 Mar 2021 11:25:42 +0200 Subject: 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. --- find-modules/FindWaylandScanner.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'find-modules') 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}") -- cgit v1.2.1