FindThreads: Honor THREADS_PREFER_PTHREAD_FLAG when pthread is found in libc
Status | Pipeline | Created by | Stages | |
---|---|---|---|---|
Blocked 00:27:15 | Stage: build Stage: test Stage: test-ext Stage: external |
Download artifacts
No artifacts found |
System updates will be applied on Mar 14th between 7am and 9am, EST (UTC-05:00). This site will have intermittent downtime during that time.
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.
This backports !6693 (merged) to to CMake 3.21 and 3.22 branches.
Backport: release
Status | Pipeline | Created by | Stages | |
---|---|---|---|---|
Blocked 00:27:15 | Stage: build Stage: test Stage: test-ext Stage: external |
Download artifacts
No artifacts found |