From b0efc1697248149aec7d10771a00bebd3c1eee95 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 24 Jun 2021 01:11:27 -0700 Subject: [PATCH] msgpack-c: don't check for GTest Not available with OpenWrt. Fixes compilation when host GTest is present. Signed-off-by: Rosen Penev (cherry picked from commit 7f34b03356e770d6aa14a9fa5152ac4020338b93) --- libs/msgpack-c/patches/010-no-gtest.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libs/msgpack-c/patches/010-no-gtest.patch diff --git a/libs/msgpack-c/patches/010-no-gtest.patch b/libs/msgpack-c/patches/010-no-gtest.patch new file mode 100644 index 0000000000..f9807e3631 --- /dev/null +++ b/libs/msgpack-c/patches/010-no-gtest.patch @@ -0,0 +1,10 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -148,7 +148,6 @@ FOREACH (F ${PREPROCESSOR_FILES}) + FILE (GENERATE OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include/msgpack/${F} CONTENT ${CONTENT}) + ENDFOREACH () + +-FIND_PACKAGE (GTest) + FIND_PACKAGE (ZLIB) + FIND_PACKAGE (Threads) + IF (GTEST_FOUND AND ZLIB_FOUND AND THREADS_FOUND AND NOT "${MSGPACK_FUZZ_REGRESSION}" STREQUAL "ON") -- 2.30.2