We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa793bf + d0d1dc3 commit 357cb1eCopy full SHA for 357cb1e
CMakeLists.txt
@@ -84,8 +84,14 @@ endif(APR_BUILD_EXAMPLES)
84
option (APR_TESTS "Build tests wrappers" OFF)
85
if(APR_TESTS)
86
message(STATUS "APR: Building tests")
87
- add_subdirectory("external/gtest")
88
- set(GTEST_LIBRARIES gtest)
+ find_package(GTest 1.8.0)
+ if(GTEST_FOUND)
89
+ include_directories(${GTEST_INCLUDE_DIRS})
90
+ else(GTEST_FOUND)
91
+ message(STATUS "APR: GTest not found, using internal gtest")
92
+ add_subdirectory("external/gtest")
93
+ set(GTEST_LIBRARIES gtest)
94
+ endif(GTEST_FOUND)
95
add_subdirectory(test)
96
endif(APR_TESTS)
97
0 commit comments