Skip to content

Commit

Permalink
Use C++20 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Nov 10, 2023
1 parent b1e33eb commit b9ebbe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/LiriSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ find_package(ECM "5.99.0" REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH};${ECM_KDE_MODULE_DIR}")

## Force C++ standard, do not fall back, use compiler extensions:
set(CMAKE_CXX_STANDARD 17)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)

Expand Down

0 comments on commit b9ebbe4

Please sign in to comment.