Skip to content

Commit 5725343

Browse files
committed
fix: Cpr build
1 parent 816c587 commit 5725343

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

flatpak/cpr.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/cmake/cprConfig.cmake.in b/cmake/cprConfig.cmake.in
2+
index 9c0bda5..89483fc 100644
3+
--- a/cmake/cprConfig.cmake.in
4+
+++ b/cmake/cprConfig.cmake.in
5+
@@ -2,6 +2,7 @@ include(CMakeFindDependencyMacro)
6+
@PACKAGE_INIT@
7+
8+
find_dependency(CURL REQUIRED)
9+
+find_dependency(OpenSSL REQUIRED)
10+
11+
include(${CMAKE_CURRENT_LIST_DIR}/cprTargets.cmake)
12+

flatpak/org.nickvision.application.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@
4242
"builddir": true,
4343
"config-opts": [
4444
"-DCMAKE_BUILD_TYPE=Release",
45-
"-DCPR_USE_SYSTEM_CURL=ON"
45+
"-DCPR_BUILD_TESTS=OFF",
46+
"-DCPR_USE_SYSTEM_CURL=ON",
47+
"-DCPR_ENABLE_SSL=ON",
4648
],
4749
"sources": [
4850
{
4951
"type": "git",
5052
"url": "https://github.com/libcpr/cpr",
5153
"tag": "1.12.0"
54+
},
55+
{
56+
"type" : "patch",
57+
"path" : "cpr.patch"
5258
}
5359
]
5460
},

0 commit comments

Comments
 (0)