diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libredwg/fix_dependency.patch | |
Diffstat (limited to 'vcpkg/ports/libredwg/fix_dependency.patch')
| -rw-r--r-- | vcpkg/ports/libredwg/fix_dependency.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/libredwg/fix_dependency.patch b/vcpkg/ports/libredwg/fix_dependency.patch new file mode 100644 index 0000000..fea397b --- /dev/null +++ b/vcpkg/ports/libredwg/fix_dependency.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2e854f2..ec2ec1d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -282,6 +282,8 @@ target_include_directories(${redwg} PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:include>)
+
++find_path(JSMN_INCLUDE_DIRS "jsmn.h")
++target_include_directories(${redwg} PRIVATE ${JSMN_INCLUDE_DIRS})
+ link_libraries(${redwg} ${LIBS} ${CMAKE_THREAD_LIBS_INIT})
+
+ if(NOT LIBREDWG_LIBONLY)
+diff --git a/src/in_json.c b/src/in_json.c
+index d66f1ab..724505b 100644
+--- a/src/in_json.c
++++ b/src/in_json.c
+@@ -51,7 +51,7 @@ static unsigned int loglevel;
+ // In strict mode an object or array can't become a key
+ // In strict mode primitives are: numbers and booleans
+ #undef JSMN_STRICT
+-#include "../jsmn/jsmn.h"
++#include "jsmn.h"
+
+ typedef struct jsmntokens
+ {
|