aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-02-08 18:14:09 +0100
committerGitHub <noreply@github.com>2020-02-08 18:14:09 +0100
commit726d5e91b55d4742dcbd6b0a82d84788dbb117b7 (patch)
tree1afe5617f988847f8e9f428ee50eebf45aaef1dd /cmake/macros
parent5fa77744e4495a77dea734330d5ae9e113b8a7f1 (diff)
Build: Enable and require c++17 (#23868)
* Build: Enable and require c++17 * Build: Raise Visual Studio version from 2017 15.2 to 2017 15.9 * Build: Raise GCC version from 6.3.0 to 7.1.0 * Reduce branch differences * Fix build after latest merge * Cleanup after latest merge
Diffstat (limited to 'cmake/macros')
-rw-r--r--cmake/macros/ConfigureBaseTargets.cmake1
-rw-r--r--cmake/macros/FindPCHSupport.cmake2
2 files changed, 2 insertions, 1 deletions
diff --git a/cmake/macros/ConfigureBaseTargets.cmake b/cmake/macros/ConfigureBaseTargets.cmake
index a59459ee773..95adb992b1a 100644
--- a/cmake/macros/ConfigureBaseTargets.cmake
+++ b/cmake/macros/ConfigureBaseTargets.cmake
@@ -19,6 +19,7 @@ add_library(trinity-feature-interface INTERFACE)
target_compile_features(trinity-feature-interface
INTERFACE
+ cxx_std_17
cxx_alias_templates
cxx_auto_type
cxx_constexpr
diff --git a/cmake/macros/FindPCHSupport.cmake b/cmake/macros/FindPCHSupport.cmake
index 9c77605616b..eda21a71967 100644
--- a/cmake/macros/FindPCHSupport.cmake
+++ b/cmake/macros/FindPCHSupport.cmake
@@ -20,7 +20,7 @@ function(ADD_CXX_PCH TARGET_NAME_LIST PCH_HEADER)
set_target_properties(${TARGET_NAME} PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT ${PCH_HEADER})
# Workaround for cotire bug: https://github.com/sakra/cotire/issues/138
- set_property(TARGET ${TARGET_NAME} PROPERTY CXX_STANDARD 14)
+ set_property(TARGET ${TARGET_NAME} PROPERTY CXX_STANDARD 17)
endforeach()
cotire(${TARGET_NAME_LIST})