From de30d2a3a6aad506a2cd9babf3252a1e254ec7b8 Mon Sep 17 00:00:00 2001 From: Logan Drescher Date: Thu, 18 Jan 2024 16:39:51 -0500 Subject: [PATCH] Attempting to fix pthreads issue in GH action --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35b77a97..ca4a94e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,10 @@ elseif (LINUX) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64") set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -m64") - endif() + endif() +elseif (WIN32) + option(CMAKE_USE_WIN32_THREADS_INIT "using WIN32 threads" ON) + option(gtest_disable_pthreads "Disable uses of pthreads in gtest." ON) endif() cmake_minimum_required(VERSION 3.13)