mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 23:41:48 +08:00
9 lines
316 B
Plaintext
9 lines
316 B
Plaintext
|
The package pthreads provides CMake targets:
|
||
|
|
||
|
find_package(pthreads REQUIRED)
|
||
|
|
||
|
target_link_libraries(main PRIVATE PThreads4W::PThreads4W)
|
||
|
#or
|
||
|
target_link_libraries(main PRIVATE PThreads4W::PThreads4W_CXXEXC)
|
||
|
#or
|
||
|
target_link_libraries(main PRIVATE PThreads4W::PThreads4W_STRUCTEXC)
|