1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/testing/jsonnet/use-real-sys-gtest.patch
2019-06-20 10:13:09 -03:00

14 lines
392 B
Diff

--- 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.