Merge pull request #975 from LebedevRI/respect-option

CMake: use threads if allowed and found, not just if found.
This commit is contained in:
Gennadiy Civil
2017-09-05 13:07:37 -04:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ if (gmock_build_tests)
cxx_test(gmock_link_test gmock_main test/gmock_link2_test.cc)
cxx_test(gmock_test gmock_main)
if (CMAKE_USE_PTHREADS_INIT)
if (DEFINED GTEST_HAS_PTHREAD)
cxx_test(gmock_stress_test gmock)
endif()