From 0e9d5914cb5590df599a0cd07e417648fb46a92b Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Thu, 30 Nov 2023 13:02:11 -0800 Subject: [PATCH] Do not use pthreads in gtest with MSVC compilers. (#11584) --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b7d9e410a1..463aaf8f28 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,6 +5,7 @@ if(MSVC) gtest_force_shared_crt "Use shared (DLL) run-time lib even when Google Test is built as static lib." ON) + option(gtest_disable_pthreads "Disable uses of pthreads in gtest." ON) set(Google_Tests_LIBS oldnames.lib