]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Add a comment about threads on Cygwin.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 21 Sep 2023 17:36:31 +0000 (20:36 +0300)
committerJia Tan <jiat0218@gmail.com>
Tue, 31 Oct 2023 10:44:59 +0000 (18:44 +0800)
CMakeLists.txt

index 9994f936a9a952267f2ba025ad6acbe034596394..f6bdc47dc29462dc41ab725c6e1b089f089bbf77 100644 (file)
@@ -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"