summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordbear496 <70439542+dbear496@users.noreply.github.com>2024-09-14 19:08:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2024-09-16 14:40:23 -0400
commit19b0553dfbcd65c3c601b89e7020bff8013cb461 (patch)
treed91015bfb5c14dcf9a87b42f58cc066fb963e4c7
parent124398c35be573324cf2384c08b99b4476f29e2b (diff)
downloadfork-ledger-19b0553dfbcd65c3c601b89e7020bff8013cb461.tar.gz
fork-ledger-19b0553dfbcd65c3c601b89e7020bff8013cb461.tar.bz2
fork-ledger-19b0553dfbcd65c3c601b89e7020bff8013cb461.zip
update to C++17
- Uses CMAKE_CXX_STANDARD instead of setting -std flag manually. - Fixes #2375
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()