aboutsummaryrefslogtreecommitdiff
path: root/ports/pthreads
diff options
context:
space:
mode:
authorGriffin Downs <grdowns@microsoft.com>2019-03-12 11:29:31 -0700
committerGriffin Downs <grdowns@microsoft.com>2019-03-12 11:29:31 -0700
commitb29b874ae9007a4450b736cabbf3cd94a4ec6359 (patch)
tree09a031509ccb697d20dc0745bae6541bb694a2b0 /ports/pthreads
parentfe626490f0f3537fc85f47f76d5bcd16ea539dea (diff)
parentf24bd414ceeed5f4faad80405b87da4394c02d63 (diff)
downloadvcpkg-b29b874ae9007a4450b736cabbf3cd94a4ec6359.tar.gz
vcpkg-b29b874ae9007a4450b736cabbf3cd94a4ec6359.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/grdowns/5580
Diffstat (limited to 'ports/pthreads')
-rw-r--r--ports/pthreads/CMakeLists.txt17
-rw-r--r--ports/pthreads/CONTROL2
-rw-r--r--ports/pthreads/portfile.cmake2
3 files changed, 13 insertions, 8 deletions
diff --git a/ports/pthreads/CMakeLists.txt b/ports/pthreads/CMakeLists.txt
index b40c14037..32f25e716 100644
--- a/ports/pthreads/CMakeLists.txt
+++ b/ports/pthreads/CMakeLists.txt
@@ -197,17 +197,20 @@ set(PTHREADS_COMPILER V)
set(PTHREADS_LIBRARY "pthread${PTHREADS_COMPILER}${PTHREADS_EXCEPTION_SCHEME}${PTHREADS_COMPATIBILITY_VERSION}")
-include_directories(.)
-
-add_library(${PTHREADS_LIBRARY} ${PTHREAD_SOURCES})
+add_library(pthreads ${PTHREAD_SOURCES})
+target_include_directories(pthreads PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
+set_target_properties(pthreads PROPERTIES OUTPUT_NAME ${PTHREADS_LIBRARY})
+if(NOT DISABLE_INSTALL_HEADERS)
+ set_property(TARGET pthreads PROPERTY PUBLIC_HEADER ${PTHREAD_PUBLIC_HEADERS})
+endif()
install(
- TARGETS ${PTHREADS_LIBRARY}
+ TARGETS pthreads EXPORT pthreads-config
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
+ PUBLIC_HEADER DESTINATION include
+ INCLUDES DESTINATION include
)
+install(EXPORT pthreads-config DESTINATION share/pthreads)
-if(NOT DISABLE_INSTALL_HEADERS)
- install(FILES ${PTHREAD_PUBLIC_HEADERS} DESTINATION include)
-endif()
diff --git a/ports/pthreads/CONTROL b/ports/pthreads/CONTROL
index 9abc926f9..d22280d90 100644
--- a/ports/pthreads/CONTROL
+++ b/ports/pthreads/CONTROL
@@ -1,3 +1,3 @@
Source: pthreads
-Version: 2.9.1-4
+Version: 2.9.1-5
Description: pthreads for windows
diff --git a/ports/pthreads/portfile.cmake b/ports/pthreads/portfile.cmake
index 18627aba1..43489adb6 100644
--- a/ports/pthreads/portfile.cmake
+++ b/ports/pthreads/portfile.cmake
@@ -26,6 +26,8 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets()
+
vcpkg_copy_pdbs()
file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/*.h")