diff options
Diffstat (limited to 'testing/jsonnet/use-real-sys-gtest.patch')
-rw-r--r-- | testing/jsonnet/use-real-sys-gtest.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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. |