diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-10-30 14:16:21 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-10-29 23:16:21 -0700 |
| commit | 0a5b1b791765a15f3a6ffc0a62a10bb1ac2c33cb (patch) | |
| tree | 14102e151d0711e24aa5a012235a147f5b2adbef | |
| parent | 19baa0d9b3be740fc107131759f89ce12b0038ac (diff) | |
| download | vcpkg-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/CONTROL | 2 | ||||
| -rw-r--r-- | ports/pthreads/usage | 9 |
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 |
