vcpkg/ports/asio/asio-config.cmake
Seunghyun Hwang cba75f1aa0
[asio] add target guard for target asio::asio (#28299)
* add target guard

* add port-version

* add version
2022-12-15 11:55:52 -08:00

10 lines
321 B
CMake

include ("${CMAKE_CURRENT_LIST_DIR}/asio-targets.cmake")
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}")