diff --git a/package/gtest/Config.in b/package/gtest/Config.in index d8bcf6343f..35fc9fea7b 100644 --- a/package/gtest/Config.in +++ b/package/gtest/Config.in @@ -26,6 +26,7 @@ if BR2_PACKAGE_GTEST config BR2_PACKAGE_GTEST_GMOCK bool "gmock" + depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-gtest help Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s specifics in mind, Google C++ Mocking Framework (or @@ -47,6 +48,9 @@ config BR2_PACKAGE_GTEST_GMOCK libraries required to link/run them. The host package installs gmock_gen, a Python script used to generate code mocks. +comment "gmock needs host gcc >= 4.9" + depends on !BR2_HOST_GCC_AT_LEAST_4_9 + endif # BR2_PACKAGE_GTEST comment "gtest needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"