mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
The `-pthread` flag tells the compiler/linker to link to additional libraries needed for thread support (e.g. libatomic on riscv64). The flag therefore should be used if requested using `THREADS_PREFER_PTHREAD_FLAG` also when the pthread functions are found in libc.
8.3 KiB
8.3 KiB