X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=b8accc779397e016c2843be25220105d3ab7b5ef;hb=e1b255b4c6486b0d2df5cd8b2aad8b817876ddf2;hp=338f1cef3bec23a3bf7fc634a5a3e000e6cf0d2e;hpb=f85485a195f304028b6e3a1db4777b59fba692a4;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 338f1cef..b8accc77 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)