diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-03-28 22:25:33 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-03-29 23:24:12 +0800 |
commit | 4d7fac0b07cc722825ba8d7838c558827e635611 (patch) | |
tree | bcae729bec6b6a49c1fe4345c5a61d58b4604afb /src/common/tuklib_cpucores.c | |
parent | CI: Runs CMake feature tests. (diff) | |
download | xz-4d7fac0b07cc722825ba8d7838c558827e635611.tar.xz |
CMake: Allows setting thread method.
The thread method is now configurable for the CMake build. It matches
the Autotools build by allowing ON (pick the best threading method),
OFF (no threading), posix, win95, and vista. If both Windows and
posix threading are both available, then ON will choose Windows
threading. Windows threading will also not use:
target_link_libraries(liblzma Threads::Threads)
since on systems like MinGW-w64 it would link the posix threads
without purpose.
Diffstat (limited to 'src/common/tuklib_cpucores.c')
0 files changed, 0 insertions, 0 deletions