From: Ronan Le Martret Date: Mon, 20 Nov 2017 13:31:46 +0000 (+0100) Subject: Fix build for native package X-Git-Tag: 4.99.3~1^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F12051%2F1;p=src%2Fapp-framework-binder.git Fix build for native package * If the package is natively compile, the gcc used is the host gcc, and host gcc version must be >4.9. This is unneeded for the mode ALLOW_NO_BINDER (like in native). Signed-off-by: Ronan Le Martret --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 68f1505a..a7d1ff95 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,9 +16,11 @@ # limitations under the License. ########################################################################### -if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) - message(FATAL_ERROR "Require at least gcc-4.9") -endif(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) +if (NOT DEFINED ALLOW_NO_BINDER) + if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) + message(FATAL_ERROR "Require at least gcc-4.9") + endif(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) +endif(ALLOW_NO_BINDER) INCLUDE(FindPkgConfig)