Skip to content

Commit ccab369

Browse files
committed
Use find_package(GIFLIB)
I am not sure if it is correct but otherwise find_package(GIF) picks up system framework not the generate `giflib*` cmake files
1 parent 44481b6 commit ccab369

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

recipes/leptonica/all/conanfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def _patch_sources(self):
130130
replace_in_file(self, cmakelists_src, "if (ZLIB_LIBRARIES)", "if(0)")
131131
replace_in_file(self, cmake_configure, "if (ZLIB_FOUND)", "if(0)")
132132
## giflib
133+
replace_in_file(self, cmakelists, "find_package(GIF)", "find_package(GIFLIB)")
133134
replace_in_file(self, cmakelists_src, "${GIF_LIBRARIES}", "GIF::GIF")
134135
if not self.options.with_gif:
135136
replace_in_file(self, cmakelists_src, "if (GIF_LIBRARIES)", "if(0)")

0 commit comments

Comments
 (0)