From 484d2da0465f531158e217def769a3aef80039c6 Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Sun, 12 Feb 2023 08:31:06 +0100 Subject: [PATCH] Set CXX standard for crossbuilding utility --- src/wayland/tools/CMakeLists.txt | 1 + src/wayland/tools/qtwaylandscanner.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/wayland/tools/CMakeLists.txt b/src/wayland/tools/CMakeLists.txt index 767df3f283..97757693eb 100644 --- a/src/wayland/tools/CMakeLists.txt +++ b/src/wayland/tools/CMakeLists.txt @@ -3,6 +3,7 @@ if (${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) cmake_minimum_required(VERSION 3.16) project(qtwaylandscanner_kde CXX) + set(CMAKE_CXX_STANDARD 20) find_package(Qt5 5.15.0 CONFIG REQUIRED Core) find_package(ECM ${KF5_MIN_VERSION} NO_MODULE REQUIRED) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) diff --git a/src/wayland/tools/qtwaylandscanner.cpp b/src/wayland/tools/qtwaylandscanner.cpp index 285253a101..ec7a297253 100644 --- a/src/wayland/tools/qtwaylandscanner.cpp +++ b/src/wayland/tools/qtwaylandscanner.cpp @@ -42,6 +42,7 @@ #include #include +#include class Scanner {