From 16c1795443e52a60bb038a3fff641f66df152035 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Fri, 1 Nov 2019 11:13:23 +0000 Subject: [PATCH] Add a GCC compiler version check in the CMakeList.txt file. Change-Id: Ia6b8abeb098f6294050ccc57e9f2e8b3b9c84ea4 Signed-off-by: Victor Cebollada --- build/tizen/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/tizen/CMakeLists.txt b/build/tizen/CMakeLists.txt index 7ebccba..850ac0c 100644 --- a/build/tizen/CMakeLists.txt +++ b/build/tizen/CMakeLists.txt @@ -6,6 +6,13 @@ SET(name "dali-core") PROJECT(${name}) SET(PKG_NAME ${name}) +SET(GCC_COMPILER_VERSION_REQUIRED "6") +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_COMPILER_VERSION_REQUIRED) + MESSAGE(FATAL_ERROR "The GCC required compiler version is " ${GCC_COMPILER_VERSION_REQUIRED}) + endif() +endif() + # API VERSION (Not DALi release version) SET(${name}_VERSION_MAJOR 0) SET(${name}_VERSION_MINOR 0) -- 2.7.4