Added check in main CmakeLists.txt to abort if gcc version is less than 4.9

This commit is contained in:
f4exb 2017-12-16 10:03:38 +01:00
parent 19426a4536
commit acc3a84190
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.1.0)
cmake_policy(SET CMP0043 OLD)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9")
message(FATAL_ERROR "SDRangel requires GCC version 4.9 or higher!")
endif()
# QT Framework
set(CMAKE_PREFIX_PATH "/Applications/Qt/5.7/clang_64/lib/cmake")