From kde-kimageshop Tue Dec 15 21:31:23 2020 From: L. E. Segovia Date: Tue, 15 Dec 2020 21:31:23 +0000 To: kde-kimageshop Subject: [graphics/krita/krita/4.3] /: Upgrade C++ standard to 14 if Boost >= 1.75 Message-Id: <20201215213123.7AC4A1242E99 () leptone ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=160806790502665 Git commit 03ff1bae4348a71987c69bb3746cfa6c15d53862 by L. E. Segovia. Committed on 15/12/2020 at 21:27. Pushed by lsegovia into branch 'krita/4.3'. Upgrade C++ standard to 14 if Boost >=3D 1.75 This only affects compilation if a recent enough Boost is detected. BUG: 430331 CCMAIL: kimageshop@kde.org M +4 -0 CMakeLists.txt https://invent.kde.org/graphics/krita/commit/03ff1bae4348a71987c69bb3746cfa= 6c15d53862 diff --git a/CMakeLists.txt b/CMakeLists.txt index 6080fc6e4a..2dfb2e70f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -574,6 +574,10 @@ endif() add_definitions(-DBOOST_ALL_NO_LIB) find_package(Boost 1.55 REQUIRED COMPONENTS system) include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) +if(${Boost_VERSION} VERSION_GREATER_EQUAL "1.75") + message(WARNING "Boost 1.75 or higher detected, upgrading to C++14.") + set(CMAKE_CXX_STANDARD 14) +endif() ## ## Test for GNU Scientific Library ##