| 1 |
Description: Use pkgconfig to find cpp-httplib |
| 2 |
Author: Hubert Chathi <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2024-03-17 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/CMakeLists.txt |
| 8 |
+++ b/CMakeLists.txt |
| 9 |
@@ -875,8 +875,9 @@ |
| 10 |
target_include_directories(nheko PRIVATE third_party/cpp-httplib-0.5.12) |
| 11 |
target_sources(nheko PRIVATE third_party/cpp-httplib-0.5.12/httplib.h) |
| 12 |
else() |
| 13 |
|
| 14 |
|
| 15 |
+ find_package(PkgConfig REQUIRED) |
| 16 |
+ pkg_check_modules(httplib REQUIRED IMPORTED_TARGET cpp-httplib) |
| 17 |
+ target_link_libraries(nheko PRIVATE PkgConfig::httplib) |
| 18 |
endif() |
| 19 |
|
| 20 |
if(USE_BUNDLED_BLURHASH) |