diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index c3acdc183d..134c80ddc9 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -4,3 +4,4 @@ - Fix: use null for non existing attributes in macro substitution applied to "paylaod" field (instead of empty string) to make behaviour more consistent (#4004) - Fix: simplified GET /version operation, without including "libversions" field (add ?options=libVersions to get it) - Fix: lighter operation to get databases list from MongoDB (#4517) +- Hardening: compile code using C++14 standard diff --git a/CMakeLists.txt b/CMakeLists.txt index 0118dbef19..472316166e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,10 @@ PROJECT(contextBroker) # find_package() for mongo driver doesn't work with cmake 2 cmake_minimum_required(VERSION 3.0) +# set C++14 standard +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # # DEBUG or RELEASE build ? #