From 1595f454d5c8257c668cccd6a86dd68175d5c430 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 21 Sep 2023 20:36:31 +0300 Subject: [PATCH] CMake: Add a comment about threads on Cygwin. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9994f936..f6bdc47d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -364,6 +364,7 @@ if(ENABLE_THREADS) find_package(Threads REQUIRED) # If both Windows and posix threading are available, prefer Windows. + # Note that on Cygwin CMAKE_USE_WIN32_THREADS_INIT is false. if(CMAKE_USE_WIN32_THREADS_INIT AND NOT ENABLE_THREADS STREQUAL "posix") if(ENABLE_THREADS STREQUAL "win95" OR (ENABLE_THREADS STREQUAL "ON"