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 {