Skip to content

Commit

Permalink
minimum practical version of GCC is 7.0 as that's when C++17 support …
Browse files Browse the repository at this point in the history
…became mature
  • Loading branch information
eteran committed Dec 21, 2020
1 parent c3d109f commit 25ffd4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ include("EnableSTLDebug")
include("ProjectDefaults")
include("AddWarnings")

if(TARGET_COMPILER_GCC AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 5.0)
message(FATAL_ERROR "Your g++ version is too old. At least 5.0 is required.")
if(TARGET_COMPILER_GCC AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 7.0)
message(FATAL_ERROR "Your g++ version is too old. At least 7.0 is required.")
endif()

find_package(Capstone REQUIRED)
Expand Down

0 comments on commit 25ffd4a

Please sign in to comment.