diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2017-09-05 17:07:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 17:07:37 (GMT) |
commit | 857ddeadebe4aa75efcee728651d0947a5a1065a (patch) | |
tree | 447d35e7e96ce5c98107969432f471f5e0b9029b /googlemock | |
parent | 7c6353d29a147cad1c904bf2957fd4ca2befe135 (diff) | |
parent | 1a62d1b088062a3d1869e4cd33e99ab02f6f44e6 (diff) | |
download | googletest-857ddeadebe4aa75efcee728651d0947a5a1065a.zip googletest-857ddeadebe4aa75efcee728651d0947a5a1065a.tar.gz googletest-857ddeadebe4aa75efcee728651d0947a5a1065a.tar.bz2 |
Merge pull request #975 from LebedevRI/respect-option
CMake: use threads if allowed and found, not just if found.
Diffstat (limited to 'googlemock')
-rw-r--r-- | googlemock/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt index bd759df..724fdd5 100644 --- a/googlemock/CMakeLists.txt +++ b/googlemock/CMakeLists.txt @@ -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() |