2022-07-06 00:49:35 +02:00
|
|
|
diff a/cmake_include/AsioStandaloneConfig.cmake b/AsioStandaloneConfig.cmake
|
|
|
|
|
|
|
|
--- a/cmake_include/AsioStandaloneConfig.cmake
|
|
|
|
+++ b/cmake_include/AsioStandaloneConfig.cmake
|
2022-07-12 20:12:55 +02:00
|
|
|
@@ -1,6 +1,10 @@
|
2022-07-06 00:49:35 +02:00
|
|
|
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
|
|
|
|
-)
|
2022-07-12 20:12:55 +02:00
|
|
|
+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
|
|
|
|
+ )
|
2022-07-06 00:49:35 +02:00
|
|
|
+endif()
|