aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/common.cmake
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-03 22:45:23 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-04 00:11:46 +0200
commitdc5d951b73c9118511e33b8b07f2e94c41a379e7 (patch)
treea83b80c4e486a980b6c5065b43fadf32bcc1523e /common.cmake
parentcommon.cmake: fix a typo (diff)
downloadcmake-common-dc5d951b73c9118511e33b8b07f2e94c41a379e7.tar.gz
cmake-common-dc5d951b73c9118511e33b8b07f2e94c41a379e7.zip
common.cmake: bump default C++ standard
Diffstat (limited to '')
-rw-r--r--common.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.cmake b/common.cmake
index d47c80a..619b062 100644
--- a/common.cmake
+++ b/common.cmake
@@ -10,7 +10,7 @@
# Add this to the top-level CMakeLists.txt (unless a higher version has already
# been specified):
#
-# cmake_minimum_required(VERSION 3.1)
+# cmake_minimum_required(VERSION 3.12)
# Without this policy set, this line:
#
@@ -54,7 +54,7 @@ if(parent_dir)
endif()
if(NOT DEFINED CC_CXX_STANDARD)
- set(CC_CXX_STANDARD "14" CACHE STRING "C++ standard version")
+ set(CC_CXX_STANDARD "20" CACHE STRING "C++ standard version")
endif()
if(NOT DEFINED CC_BEST_PRACTICES)
option(CC_BEST_PRACTICES "Set common compiler options" "${default_value}")