aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--ports/pthreads/CONTROL2
-rw-r--r--ports/pthreads/usage9
2 files changed, 10 insertions, 1 deletions
diff --git a/ports/pthreads/CONTROL b/ports/pthreads/CONTROL
index 448fb9951..43c38ffdb 100644
--- a/ports/pthreads/CONTROL
+++ b/ports/pthreads/CONTROL
@@ -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
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