From cc0782b3246f04f3619014a904974a7c7caf3c29 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Tue, 5 Sep 2023 18:03:34 +0200 Subject: [PATCH] Disable USE_PTHREAD on windows to enable WITH_PTHREAD that allows to build the embedded pthread library on windows --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8a1bd2d3d..8e77dd4b94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -572,7 +572,7 @@ if(SOQT_FOUND) # SoQt < 1.6.0 that depends on Qt4 was found. We need an explicit endif() VP_OPTION(USE_SOXT SOXT "" "Include Coin/SoXt support" "" OFF IF USE_COIN3D AND NOT WINRT AND NOT IOS) set(THREADS_PREFER_PTHREAD_FLAG ON) -VP_OPTION(USE_PTHREAD Threads "" "Include pthread support" "" ON) +VP_OPTION(USE_PTHREAD Threads "" "Include pthread support" "" ON IF NOT (WIN32 OR MINGW)) # We need threads with c++11 if((VISP_CXX_STANDARD GREATER VISP_CXX_STANDARD_98) AND NOT USE_PTHREAD)