diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-21 20:36:31 +0300 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-10-31 18:44:59 +0800 |
commit | 1595f454d5c8257c668cccd6a86dd68175d5c430 (patch) | |
tree | c9272cbbbe40c7531ebd48ee0df00198ed187931 | |
parent | CMake: Bump maximum policy version to 3.27. (diff) | |
download | xz-1595f454d5c8257c668cccd6a86dd68175d5c430.tar.xz |
CMake: Add a comment about threads on Cygwin.
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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" |