diff --git a/add-missing-minizip-include.patch b/add-missing-minizip-include.patch new file mode 100644 index 0000000..93e58af --- /dev/null +++ b/add-missing-minizip-include.patch @@ -0,0 +1,12 @@ +diff --git a/ThirdParty/Minizip/minizip/miniunz.c b/ThirdParty/Minizip/minizip/miniunz.c +index 2264705..9d2130c 100644 +--- a/ThirdParty/Minizip/minizip/miniunz.c ++++ b/ThirdParty/Minizip/minizip/miniunz.c +@@ -51,6 +51,7 @@ + # include + # include + #else ++# include + # include + # include + #endif diff --git a/conanfile.py b/conanfile.py index 599ad77..3ab3212 100644 --- a/conanfile.py +++ b/conanfile.py @@ -20,11 +20,15 @@ class FMILibraryConan(ConanFile): tool_requires = "cmake/[>=3.15]" generators = "CMakeDeps" - exports_sources = "build-static-c99snprintf.patch" + exports_sources = [ + "add-missing-minizip-include.patch", + "build-static-c99snprintf.patch", + ] def source(self): git = Git(self) git.clone(url="https://github.com/modelon-community/fmi-library.git", target="src", args=["--branch=2.3"]) + patch(self, base_path="src", patch_file="add-missing-minizip-include.patch") patch(self, base_path="src", patch_file="build-static-c99snprintf.patch") def layout(self):