mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 12:35:37 +08:00
[asio] add target guard for target asio::asio
(#28299)
* add target guard * add port-version * add version
This commit is contained in:
parent
456f7f0ed7
commit
cba75f1aa0
@ -1,6 +1,9 @@
|
|||||||
include ("${CMAKE_CURRENT_LIST_DIR}/asio-targets.cmake")
|
include ("${CMAKE_CURRENT_LIST_DIR}/asio-targets.cmake")
|
||||||
add_library(asio::asio INTERFACE IMPORTED)
|
|
||||||
target_link_libraries(asio::asio INTERFACE asio)
|
if(NOT TARGET asio::asio)
|
||||||
|
add_library(asio::asio INTERFACE IMPORTED)
|
||||||
|
target_link_libraries(asio::asio INTERFACE asio)
|
||||||
|
endif()
|
||||||
|
|
||||||
get_target_property(_ASIO_INCLUDE_DIR asio INTERFACE_INCLUDE_DIRECTORIES)
|
get_target_property(_ASIO_INCLUDE_DIR asio INTERFACE_INCLUDE_DIRECTORIES)
|
||||||
set(ASIO_INCLUDE_DIR "${_ASIO_INCLUDE_DIR}")
|
set(ASIO_INCLUDE_DIR "${_ASIO_INCLUDE_DIR}")
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "asio",
|
"name": "asio",
|
||||||
"version": "1.24.0",
|
"version": "1.24.0",
|
||||||
|
"port-version": 1,
|
||||||
"description": "Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.",
|
"description": "Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.",
|
||||||
"homepage": "https://github.com/chriskohlhoff/asio",
|
"homepage": "https://github.com/chriskohlhoff/asio",
|
||||||
"documentation": "https://think-async.com/Asio/asio-1.24.0/doc/",
|
"documentation": "https://think-async.com/Asio/asio-1.24.0/doc/",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "b134a3e21a2ef661aa5e3802cefc22386c095aaa",
|
||||||
|
"version": "1.24.0",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "bba8740d419878e427c71f076d569f8a26833c6b",
|
"git-tree": "bba8740d419878e427c71f076d569f8a26833c6b",
|
||||||
"version": "1.24.0",
|
"version": "1.24.0",
|
||||||
|
@ -202,7 +202,7 @@
|
|||||||
},
|
},
|
||||||
"asio": {
|
"asio": {
|
||||||
"baseline": "1.24.0",
|
"baseline": "1.24.0",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"asio-grpc": {
|
"asio-grpc": {
|
||||||
"baseline": "2.3.0",
|
"baseline": "2.3.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user