mirror of
https://github.com/google/benchmark.git
synced 2024-11-27 02:44:34 +00:00
Merge pull request #509 from efcs/fix-gtest-install
Prevent GTest and GMock from being installed with Google Benchmark.
This commit is contained in:
commit
e1c3a83b81
|
@ -67,6 +67,8 @@ endmacro(build_external_gtest)
|
|||
|
||||
if (BENCHMARK_ENABLE_GTEST_TESTS)
|
||||
if (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/googletest)
|
||||
set(INSTALL_GTEST OFF CACHE INTERNAL "")
|
||||
set(INSTALL_GMOCK OFF CACHE INTERNAL "")
|
||||
add_subdirectory(${CMAKE_SOURCE_DIR}/googletest)
|
||||
set(GTEST_BOTH_LIBRARIES gtest gtest_main)
|
||||
elseif(BENCHMARK_DOWNLOAD_DEPENDENCIES)
|
||||
|
|
Loading…
Reference in a new issue