summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2023-02-15 17:30:28 +0100
committerMilan Crha <mcrha@redhat.com>2023-02-15 17:30:28 +0100
commit48603b7b04a275e58e900cbd9e02bfec828b8ac4 (patch)
treed5c8fa03645db3a92ba0d1651a94f62cd2889974
parentd09103827677edcaf676094c1075efceb72a9399 (diff)
downloadevolution-data-server-48603b7b04a275e58e900cbd9e02bfec828b8ac4.tar.gz
I#453 - build: Make it possible to override C++ standard
When the variable is cached, it can be overridden by the caller, thus when libraries like libphonenumber require certain version of the C++ standard, it can be set from the outside. Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/453
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3902c4ac7..099f2061c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ cmake_policy(VERSION 3.1)
project(evolution-data-server
VERSION 3.47.3
LANGUAGES C CXX)
-set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD 14 CACHE INTERNAL "C++ standard to use")
set(PROJECT_BUGREPORT "https://gitlab.gnome.org/GNOME/evolution-data-server/issues/")
# Base Version: This is for API/version tracking for things like