aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake')
-rw-r--r--vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake39
1 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake b/vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake
new file mode 100644
index 0000000..e648ecf
--- /dev/null
+++ b/vcpkg/ports/pthreads/vcpkg-cmake-wrapper-pthreads-windows.cmake
@@ -0,0 +1,39 @@
+_find_package(PThreads4W)
+set(PThreads_windows_INCLUDE_DIR "${PThreads4W_INCLUDE_DIR}")
+set(PThreads_windows_LIBRARY "${PThreads4W_LIBRARY}")
+set(PThreads_windows_LIBRARIES "${PThreads4W_LIBRARY}")
+set(PThreads_windows_VERSION "${PThreads4W_VERSION}")
+
+if(PThreads4W_FOUND)
+ set(PThreads_windows_FOUND TRUE)
+
+ if(NOT TARGET PThreads_windows::PThreads_windows)
+ if( EXISTS "${PThreads4W_LIBRARY_RELEASE_DLL}" )
+ add_library( PThreads_windows::PThreads_windows SHARED IMPORTED )
+ set_target_properties( PThreads_windows::PThreads_windows PROPERTIES
+ IMPORTED_LOCATION_RELEASE "${PThreads4W_LIBRARY_RELEASE_DLL}"
+ IMPORTED_IMPLIB "${PThreads4W_LIBRARY_RELEASE}"
+ INTERFACE_INCLUDE_DIRECTORIES "${PThreads4W_INCLUDE_DIR}"
+ IMPORTED_CONFIGURATIONS Release
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C" )
+ if( EXISTS "${PThreads4W_LIBRARY_DEBUG_DLL}" )
+ set_property( TARGET PThreads_windows::PThreads_windows APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug )
+ set_target_properties( PThreads_windows::PThreads_windows PROPERTIES
+ IMPORTED_LOCATION_DEBUG "${PThreads4W_LIBRARY_DEBUG_DLL}"
+ IMPORTED_IMPLIB_DEBUG "${PThreads4W_LIBRARY_DEBUG}" )
+ endif()
+ else()
+ add_library( PThreads_windows::PThreads_windows UNKNOWN IMPORTED )
+ set_target_properties( PThreads_windows::PThreads_windows PROPERTIES
+ IMPORTED_LOCATION_RELEASE "${PThreads4W_LIBRARY_RELEASE}"
+ INTERFACE_INCLUDE_DIRECTORIES "${PThreads4W_INCLUDE_DIR}"
+ IMPORTED_CONFIGURATIONS Release
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C" )
+ if( EXISTS "${PThreads4W_LIBRARY_DEBUG}" )
+ set_property( TARGET PThreads_windows::PThreads_windows APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug )
+ set_target_properties( PThreads_windows::PThreads_windows PROPERTIES
+ IMPORTED_LOCATION_DEBUG "${PThreads4W_LIBRARY_DEBUG}" )
+ endif()
+ endif()
+ endif()
+endif()