diff --git a/recipes/hdf5/all/conanfile.py b/recipes/hdf5/all/conanfile.py index f55f22854650f..2269481613d02 100644 --- a/recipes/hdf5/all/conanfile.py +++ b/recipes/hdf5/all/conanfile.py @@ -242,7 +242,7 @@ def _config_libname(lib): components = self._components() add_component("hdf5_c", **components["hdf5_c"]) - self.cpp_info.components["hdf5_c"].includedirs.append(os.path.join(self.package_folder, "include", "hdf5")) + self.cpp_info.components["hdf5_c"].includedirs.append("include/hdf5") if self.settings.os == "Linux": self.cpp_info.components["hdf5_c"].system_libs.extend(["dl", "m"]) if self.options.get_safe("threadsafe"):