From dd9c51278e850d578ea8df75329dc0a0cd22d97e Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jul 14 2023 03:38:13 +0000 Subject: Build as C++17 instead of C++11 - Protobuf v4 (23.x) needs at least C++14, but the package does not compile as C++14, so we use C++17 instead --- diff --git a/clementine.spec b/clementine.spec index c688a89..7f13349 100644 --- a/clementine.spec +++ b/clementine.spec @@ -108,6 +108,7 @@ sed -i 's|local_server_name_ = qApp->applicationName().toLower();|local_server_n # -fPIC solves that problem %global optflags %{optflags} -fPIC %{cmake} \ + -DCMAKE_CXX_STANDARD:INT=17 \ -DBUILD_WERROR:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DUSE_SYSTEM_QTSINGLEAPPLICATION=1 \