Skip to content

Commit

Permalink
update to C++17
Browse files Browse the repository at this point in the history
- Uses CMAKE_CXX_STANDARD instead of setting -std flag manually.
- Fixes #2375
  • Loading branch information
dbear496 authored and jwiegley committed Sep 16, 2024
1 parent 124398c commit 19b0553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 19b0553

Please sign in to comment.