mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 12:49:00 +08:00
Merge pull request #6587 from ivysnow/concurrentqueue
[concurrentqueue]update to 1.0.0-beta-dea078c with cmake target
This commit is contained in:
commit
59b28986bf
11
ports/concurrentqueue/CMakeLists.txt
Normal file
11
ports/concurrentqueue/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(concurrentqueue C)
|
||||
|
||||
add_library(concurrentqueue INTERFACE)
|
||||
|
||||
target_include_directories(concurrentqueue INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
||||
|
||||
install(TARGETS concurrentqueue
|
||||
EXPORT concurrentqueue
|
||||
)
|
||||
install(EXPORT concurrentqueue FILE unofficial-concurrentqueue-targets.cmake NAMESPACE unofficial::concurrentqueue:: DESTINATION share/unofficial-concurrentqueue)
|
@ -1,3 +1,3 @@
|
||||
Source: concurrentqueue
|
||||
Version: 1.0.0-beta
|
||||
Version: 1.0.0-beta-dea078c
|
||||
Description: A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
|
||||
|
@ -4,11 +4,29 @@ include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO cameron314/concurrentqueue
|
||||
REF 1d60c7f3004a87eaa9d9cbd647d66361c868558f
|
||||
SHA512 4b435843291f4db5be6d3fb3dd33c38a1c3c0a2e2c22910b819f119cfca2867116c5d01dd5e7d302693d467821688aac5dc7334b4a9ef39275e682f1fb99585c
|
||||
REF dea078cf5b6e742cd67a0d725e36f872feca4de4
|
||||
SHA512 edd47bcc025ffab7ac62cea168a9672a20cdbe139267426e97553fa1c796f1547d8414915518ee6be34a68d05e8a8171291f958c5eac0434ea8ba953bff85dbe
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-concurrentqueue TARGET_PATH share/unofficial-concurrentqueue)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-config.in.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/unofficial-concurrentqueue/unofficial-concurrentqueue-config.cmake
|
||||
@ONLY
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/concurrentqueue RENAME copyright)
|
||||
|
||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
|
||||
|
@ -0,0 +1,6 @@
|
||||
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32)
|
||||
include(CMakeFindDependencyMacro)
|
||||
find_dependency(Threads)
|
||||
endif()
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-targets.cmake)
|
Loading…
Reference in New Issue
Block a user