diff --git a/debian/changelog b/debian/changelog index 0765612..ef78d68 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +lxqt-build-tools (0.12.0-0ubuntu3) lunar; urgency=medium + + * Build using C++17 by default instead of C++14, to be compatible with KDE + Frameworks and Qt. + + -- Simon Quigley Wed, 25 Jan 2023 11:36:17 -0600 + lxqt-build-tools (0.12.0-0ubuntu2) lunar; urgency=medium * Added 'Rules-Requires-Root: no'. diff --git a/debian/patches/cpp17.patch b/debian/patches/cpp17.patch new file mode 100644 index 0000000..3d1db2e --- /dev/null +++ b/debian/patches/cpp17.patch @@ -0,0 +1,24 @@ +Description: Bump the minimum compatibility level to C++17 +Author: Simon Quigley +Origin: vendor +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029611 +Forwarded: https://github.com/lxqt/lxqt-build-tools/pull/83 +Last-Update: 2023-01-25 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/cmake/modules/LXQtCompilerSettings.cmake ++++ b/cmake/modules/LXQtCompilerSettings.cmake +@@ -181,11 +181,11 @@ endif() + + + #----------------------------------------------------------------------------- +-# CXX14 requirements - no checks, we just set it ++# CXX17 requirements - no checks, we just set it + #----------------------------------------------------------------------------- + set(CMAKE_CXX_STANDARD_REQUIRED True) + set(CMAKE_CXX_EXTENSIONS OFF) +-set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ ISO Standard") ++set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ ISO Standard") + + + #----------------------------------------------------------------------------- diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d24af3f --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +cpp17.patch