vcpkg/ports/elements/asio-headers.patch
Andrew Kornilov 67b8c01d07
[elements] Add new port (#28224)
* [elements] Add new port

* [elements] Only static library

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>

* [elements] Update installation commands

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>

* [elements] Use vcpkg_install_copyright command

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>

* [elements] Update installation commands

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>

* [elements] Remove outdated flags

* [elements] Update portfile

* Update version database

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2022-12-28 13:15:08 -08:00

15 lines
566 B
Diff

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index e8179fbe..29b420c7 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -288,7 +288,8 @@ endif()
###############################################################################
# Asio headers
-target_include_directories(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/asio/asio/include)
+find_path(ASIO_INCLUDE_DIR asio.hpp)
+target_include_directories(elements PUBLIC ${ASIO_INCLUDE_DIR})
###############################################################################
# Global options