From 0efc4264fc6ee7c946d9565448bc1bb32704e727 Mon Sep 17 00:00:00 2001 From: Dawid Drozd Date: Sat, 14 Sep 2019 15:51:47 +0200 Subject: [PATCH] Update required C++ to 17 --- lib/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 5e074a2..2ed92e3 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -9,7 +9,12 @@ project(EventBus LANGUAGES CXX ) +# Why C++ 17 needed: +# - std::shared_mutex used +# - nested namespaces e.g. my::name::space + set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) # Dependencies # No dependencies for EventBus yay! @@ -47,7 +52,7 @@ add_library(EventBus ) add_library(Dexode::EventBus ALIAS EventBus) -target_compile_features(EventBus PUBLIC cxx_std_14) +target_compile_features(EventBus PUBLIC cxx_std_17) target_include_directories(EventBus PUBLIC $