diff options
| author | Mattias Ellert <mattias.ellert@physics.uu.se> | 2021-11-03 08:43:37 (GMT) |
|---|---|---|
| committer | Mattias Ellert <mattias.ellert@physics.uu.se> | 2021-11-10 13:29:09 (GMT) |
| commit | 68285bc8a91586ae47315679212eaef737af6cc0 (patch) | |
| tree | b0939f9905133871df6c84bd42f0650a5d100681 /Tests/Module | |
| parent | 47846c50632f6d43d528c5e4fe537b8165d313a9 (diff) | |
| download | CMake-68285bc8a91586ae47315679212eaef737af6cc0.zip CMake-68285bc8a91586ae47315679212eaef737af6cc0.tar.gz CMake-68285bc8a91586ae47315679212eaef737af6cc0.tar.bz2 | |
FindThreads: Honor THREADS_PREFER_PTHREAD_FLAG when pthread is found in libc
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.
Diffstat (limited to 'Tests/Module')
0 files changed, 0 insertions, 0 deletions
