Build using C++17 by default instead of C++14, to be compatible with KDE Frameworks and Qt.

ubuntu/lunar ubuntu/0.12.0-0ubuntu3
Simon Quigley 2 years ago
parent 7d0b5f0a9b
commit eeb07eef61

7
debian/changelog vendored

@ -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 <tsimonq2@ubuntu.com> Wed, 25 Jan 2023 11:36:17 -0600
lxqt-build-tools (0.12.0-0ubuntu2) lunar; urgency=medium
* Added 'Rules-Requires-Root: no'.

@ -0,0 +1,24 @@
Description: Bump the minimum compatibility level to C++17
Author: Simon Quigley <tsimonq2@lubuntu.me>
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")
#-----------------------------------------------------------------------------

@ -0,0 +1 @@
cpp17.patch
Loading…
Cancel
Save