Merge "Fix build for native package"
authorJosé Bollo <jobol@nonadev.net>
Mon, 20 Nov 2017 14:00:08 +0000 (14:00 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Mon, 20 Nov 2017 14:00:08 +0000 (14:00 +0000)
src/CMakeLists.txt

index 338f1ce..b8accc7 100644 (file)
 # 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)