mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 21:09:02 +08:00
8eb76645c0
* [pthreads4w] update for single config builds, improve downstream compatibility * [darknet] remove integrated pthreads cmake module * [pthreads4w] use config instead of module naming * fix library search path * improve downstream compatibility even more * fix references * do not store deprecated symbols in PThreads4W cmake config * fix references * [pthreads4w] add license * fix references * Update ports/pthreads/vcpkg.json Co-authored-by: Billy O'Neal <bion@microsoft.com> * add usage * update refs Co-authored-by: Billy O'Neal <bion@microsoft.com>
14 lines
412 B
CMake
14 lines
412 B
CMake
_find_package(PThreads4W)
|
|
set(PTHREAD_INCLUDE_DIR "${PThreads4W_INCLUDE_DIR}")
|
|
set(PTHREAD_LIBRARY "${PThreads4W_LIBRARY}")
|
|
set(PTHREAD_LIBRARIES "${PThreads4W_LIBRARY}")
|
|
set(PTHREAD_VERSION "${PThreads4W_VERSION}")
|
|
set(LIBPTHREAD "${PThreads4W_LIBRARY}")
|
|
set(LIBPTHREADS "${PThreads4W_LIBRARY}")
|
|
|
|
if(PThreads4W_FOUND)
|
|
set(PTHREAD_FOUND TRUE)
|
|
set(LIBPTHREAD_FOUND TRUE)
|
|
set(LIBPTHREADS_FOUND TRUE)
|
|
endif()
|