From 5caa4fbc656e5b1f2236bcfab0f458c229ccb848 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Mon, 25 Dec 2023 16:37:37 +0700 Subject: [PATCH] build: set `CMAKE_CXX_STANDARD` to `17` --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10c804d..297eb90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,9 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) set(NOT_SUBPROJECT TRUE) endif() +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # Initialize CPM.cmake include(cmake/CPM.cmake)