[asio] add target guard for target asio::asio (#28299)

* add target guard

* add port-version

* add version
This commit is contained in:
Seunghyun Hwang 2022-12-16 04:55:52 +09:00 committed by GitHub
parent 456f7f0ed7
commit cba75f1aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 3 deletions

View File

@ -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}")

View File

@ -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/",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b134a3e21a2ef661aa5e3802cefc22386c095aaa",
"version": "1.24.0",
"port-version": 1
},
{
"git-tree": "bba8740d419878e427c71f076d569f8a26833c6b",
"version": "1.24.0",

View File

@ -202,7 +202,7 @@
},
"asio": {
"baseline": "1.24.0",
"port-version": 0
"port-version": 1
},
"asio-grpc": {
"baseline": "2.3.0",