From 0a5b1b791765a15f3a6ffc0a62a10bb1ac2c33cb Mon Sep 17 00:00:00 2001 From: JackBoosY <47264268+JackBoosY@users.noreply.github.com> Date: Wed, 30 Oct 2019 14:16:21 +0800 Subject: [pthreads]Add usage. (#8651) * [pthreads]Add usage. * [pthreads]Update usage: using namespace. * [pthreads]separate namespace. * [pthreads]Remove target_include_directories. * [pthreads]Increase version. --- ports/pthreads/CONTROL | 2 +- ports/pthreads/usage | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ports/pthreads/usage 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 -- cgit v1.2.3