mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
6abc931a7d
* [ableton-link] Fix typo missing dash in name. * Version DB
20 lines
704 B
Diff
20 lines
704 B
Diff
diff a/cmake_include/AsioStandaloneConfig.cmake b/AsioStandaloneConfig.cmake
|
|
|
|
--- a/cmake_include/AsioStandaloneConfig.cmake
|
|
+++ b/cmake_include/AsioStandaloneConfig.cmake
|
|
@@ -1,6 +1,10 @@
|
|
add_library(AsioStandalone::AsioStandalone IMPORTED INTERFACE)
|
|
|
|
-set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY
|
|
- INTERFACE_INCLUDE_DIRECTORIES
|
|
- ${CMAKE_CURRENT_LIST_DIR}/../modules/asio-standalone/asio/include
|
|
-)
|
|
+find_package(asio REQUIRED)
|
|
+if(asio_FOUND)
|
|
+ message(STATUS "Dependency asio found in ${asio_DIR}")
|
|
+ set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY
|
|
+ INTERFACE_INCLUDE_DIRECTORIES
|
|
+ ${asio_DIR}/../../include
|
|
+ )
|
|
+endif()
|