Skip to content

Commit

Permalink
fix windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
toge committed Feb 2, 2024
1 parent a36f577 commit e050e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/leptonica/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def generate(self):
tc.variables["LIBWEBP_SUPPORT"] = self.options.with_webp
tc.variables["OPENJPEG_SUPPORT"] = self.options.with_openjpeg
if Version(self.version) >= "1.84.0" and self.options.with_openjpeg:
jp2k_include_dir = self.dependencies["openjpeg"].cpp_info.includedirs[1]
jp2k_include_dir = self.dependencies["openjpeg"].cpp_info.includedirs[1].replace("\\", "/")
tc.preprocessor_definitions["LIBJP2K_HEADER"] = f"<{jp2k_include_dir}/openjpeg.h>"
tc.generate()
deps = CMakeDeps(self)
Expand Down

0 comments on commit e050e08

Please sign in to comment.