From 24feb2fe18a527186da34db8bd5bd4903ac674c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Tue, 17 May 2022 13:12:03 +0200
Subject: [PATCH] disabling pthreads on gtest for cmake<3.11

---
 test/gtest/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt
index 22f0f7c..32049eb 100644
--- a/test/gtest/CMakeLists.txt
+++ b/test/gtest/CMakeLists.txt
@@ -5,7 +5,7 @@ if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
   include(ExternalProject)
 
   set(GTEST_FORCE_SHARED_CRT ON)
-  set(GTEST_DISABLE_PTHREADS OFF)
+  set(GTEST_DISABLE_PTHREADS ON)
 
   # For some reason I need to disable PTHREADS
   # with g++ (Ubuntu 4.9.3-8ubuntu2~14.04) 4.9.3
-- 
GitLab