From: Victor Cebollada Date: Fri, 1 Nov 2019 11:13:23 +0000 (+0000) Subject: Add a GCC compiler version check in the CMakeList.txt file. X-Git-Tag: dali_1.4.45~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F216811%2F2;p=platform%2Fcore%2Fuifw%2Fdali-core.git Add a GCC compiler version check in the CMakeList.txt file. Change-Id: Ia6b8abeb098f6294050ccc57e9f2e8b3b9c84ea4 Signed-off-by: Victor Cebollada --- 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)