vcpkg/ports/liblsl/use-find-package-asio.patch
chausner 96bc551b19
[liblsl] Update to 1.16.0 (#21284)
* Start adapting liblsl for version 1.15.2

* Use vcpkg Boost package

* Minor updates

* Switch to master branch

* Update git-tree hash

* Fix hash

* Update git-tree hash

* Add missing boost dependencies

* Update git-tree hash

* Try to remove entries from ci.baseline.txt

* Use asio package from vcpkg

* Update git-tree hash

* Update version to upcoming 1.16.0

* Set liblsl license

* Update CI baseline

* Remove obsolete version

* Update reference

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2022-03-29 17:19:19 -07:00

16 lines
564 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b47cb7f8..bd12f519 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,8 +203,9 @@ target_include_directories(lslobj
target_include_directories(lslobj
SYSTEM PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/thirdparty/loguru>
- $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/thirdparty/asio>
)
+find_package(asio CONFIG REQUIRED)
+target_link_libraries(lslobj PUBLIC asio::asio)
target_compile_definitions(lslobj PRIVATE
LIBLSL_EXPORTS
LOGURU_DEBUG_LOGGING=$<BOOL:${LSL_DEBUGLOG}>