From 7c59ffd6c5e32cb8a893adee122b6d8fa76cdf70 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Fri, 1 Nov 2019 11:14:53 +0000 Subject: [PATCH] Add a GCC compiler version check in the CMakeList.txt file. Change-Id: Ie613ac152353dfc56809e814f2fbf30634fca0dc 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 8b7dff4..51dd86b 100644 --- a/build/tizen/CMakeLists.txt +++ b/build/tizen/CMakeLists.txt @@ -8,6 +8,13 @@ SET(PKG_NAME ${name}) SET(name "dali-adaptor") +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() + # Include additional macros INCLUDE( common.cmake ) -- 2.7.4