aboutsummaryrefslogtreecommitdiff
path: root/ports/pthreads/usage
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-10-30 14:16:21 +0800
committerVictor Romero <romerosanchezv@gmail.com>2019-10-29 23:16:21 -0700
commit0a5b1b791765a15f3a6ffc0a62a10bb1ac2c33cb (patch)
tree14102e151d0711e24aa5a012235a147f5b2adbef /ports/pthreads/usage
parent19baa0d9b3be740fc107131759f89ce12b0038ac (diff)
downloadvcpkg-0a5b1b791765a15f3a6ffc0a62a10bb1ac2c33cb.tar.gz
vcpkg-0a5b1b791765a15f3a6ffc0a62a10bb1ac2c33cb.zip
[pthreads]Add usage. (#8651)
* [pthreads]Add usage. * [pthreads]Update usage: using namespace. * [pthreads]separate namespace. * [pthreads]Remove target_include_directories. * [pthreads]Increase version.
Diffstat (limited to 'ports/pthreads/usage')
-rw-r--r--ports/pthreads/usage9
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/pthreads/usage b/ports/pthreads/usage
new file mode 100644
index 000000000..343c97f44
--- /dev/null
+++ b/ports/pthreads/usage
@@ -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) \ No newline at end of file