Merge pull request #975 from LebedevRI/respect-option
CMake: use threads if allowed and found, not just if found.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user