From: Lasse Collin Date: Thu, 21 Sep 2023 17:36:31 +0000 (+0300) Subject: CMake: Add a comment about threads on Cygwin. X-Git-Tag: v5.5.1alpha~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=152d0771ddd0cffcac9042ad1a66f110d228eee2;p=thirdparty%2Fxz.git CMake: Add a comment about threads on Cygwin. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 13ff7b1c..246d11a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,6 +363,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"