mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:09:02 +08:00
[pthreads]Add usage. (#8651)
* [pthreads]Add usage. * [pthreads]Update usage: using namespace. * [pthreads]separate namespace. * [pthreads]Remove target_include_directories. * [pthreads]Increase version.
This commit is contained in:
parent
19baa0d9b3
commit
0a5b1b7917
@ -1,4 +1,4 @@
|
||||
Source: pthreads
|
||||
Version: 3.0.0-3
|
||||
Version: 3.0.0-4
|
||||
Homepage: https://sourceware.org/pub/pthreads-win32/
|
||||
Description: pthreads for windows
|
||||
|
9
ports/pthreads/usage
Normal file
9
ports/pthreads/usage
Normal file
@ -0,0 +1,9 @@
|
||||
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)
|
Loading…
Reference in New Issue
Block a user