From 15aa878b0dd21efa1aef2518baaf60ba57571daf Mon Sep 17 00:00:00 2001 From: TBK Date: Wed, 19 Jun 2019 22:17:37 +0200 Subject: testing/jsonnet: new aport --- testing/jsonnet/use-real-sys-gtest.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testing/jsonnet/use-real-sys-gtest.patch (limited to 'testing/jsonnet/use-real-sys-gtest.patch') diff --git a/testing/jsonnet/use-real-sys-gtest.patch b/testing/jsonnet/use-real-sys-gtest.patch new file mode 100644 index 0000000000..d4c00573e0 --- /dev/null +++ b/testing/jsonnet/use-real-sys-gtest.patch @@ -0,0 +1,14 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -72,8 +72,9 @@ + include_directories("${gtest_SOURCE_DIR}/include") + + elseif (BUILD_TESTS AND USE_SYSTEM_GTEST) +- enable_testing() +- add_subdirectory(/usr/src/googletest ${GLOBAL_OUTPUT_PATH}/googletest-build) ++ enable_testing() ++ find_package(GTest REQUIRED) ++ include_directories(${GTEST_INCLUDE_DIR}) + endif() + + # Compiler flags. -- cgit v1.2.3