summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jobol@nonadev.net>2017-11-20 14:00:08 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2017-11-20 14:00:08 +0000
commite1b255b4c6486b0d2df5cd8b2aad8b817876ddf2 (patch)
tree1dc1bd1565627c40a5f3dd4d5e56f5b5a32a6d7e
parentf85485a195f304028b6e3a1db4777b59fba692a4 (diff)
parent7a42848a00166bf5d4b79d341344d81439cc3b60 (diff)
Merge "Fix build for native package"
-rw-r--r--src/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
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)