From 19b0553dfbcd65c3c601b89e7020bff8013cb461 Mon Sep 17 00:00:00 2001 From: dbear496 <70439542+dbear496@users.noreply.github.com> Date: Sat, 14 Sep 2024 19:08:38 -0400 Subject: update to C++17 - Uses CMAKE_CXX_STANDARD instead of setting -std flag manually. - Fixes #2375 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa8594e4..2b2cca92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ set(Ledger_TEST_TIMEZONE "America/Chicago") enable_testing() add_compile_definitions(BOOST_FILESYSTEM_NO_DEPRECATED) -add_compile_options(-std=c++11) +set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard") if (CYGWIN) add_compile_options(-U__STRICT_ANSI__) endif() -- cgit v1.2.3