mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 13:28:01 +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")
|
||||
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)
|
||||
set(ASIO_INCLUDE_DIR "${_ASIO_INCLUDE_DIR}")
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "asio",
|
||||
"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.",
|
||||
"homepage": "https://github.com/chriskohlhoff/asio",
|
||||
"documentation": "https://think-async.com/Asio/asio-1.24.0/doc/",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b134a3e21a2ef661aa5e3802cefc22386c095aaa",
|
||||
"version": "1.24.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "bba8740d419878e427c71f076d569f8a26833c6b",
|
||||
"version": "1.24.0",
|
||||
|
@ -202,7 +202,7 @@
|
||||
},
|
||||
"asio": {
|
||||
"baseline": "1.24.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"asio-grpc": {
|
||||
"baseline": "2.3.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user