Skip to content

Commit

Permalink
Enforcing minimal C++17 in the cmake configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Feb 16, 2024
1 parent 6040a69 commit 07939a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ if ("${CMAKE_CXX_STANDARD}" STREQUAL "")
set (CMAKE_CXX_STANDARD 17)
endif ()

if ("${CMAKE_CXX_STANDARD}" VERSION_LESS "17")
message (FATAL_ERROR "Use C++17 or later to compile this project.")
endif()

if ("${CC_TOOLS_QT_MAJOR_QT_VERSION}" STREQUAL "")
set (CC_TOOLS_QT_MAJOR_QT_VERSION 5)
endif ()
Expand Down

0 comments on commit 07939a9

Please sign in to comment.