summaryrefslogtreecommitdiffstats
path: root/Tests/Module
diff options
context:
space:
mode:
authorMattias Ellert <mattias.ellert@physics.uu.se>2021-11-03 08:43:37 (GMT)
committerMattias Ellert <mattias.ellert@physics.uu.se>2021-11-10 13:29:09 (GMT)
commit68285bc8a91586ae47315679212eaef737af6cc0 (patch)
treeb0939f9905133871df6c84bd42f0650a5d100681 /Tests/Module
parent47846c50632f6d43d528c5e4fe537b8165d313a9 (diff)
downloadCMake-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