Skip to content

Commit

Permalink
[hdf5/all] Use a relative include path
Browse files Browse the repository at this point in the history
This prevents a where the MSBuildDeps generator would generate invalid entries in the property sheet.
Since conan-io/conan#9686 the property sheet uses variable references and assumes the include path is relative to the package dir.
  • Loading branch information
stefansli committed Dec 14, 2021
1 parent 2e70e0a commit 33f3801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/hdf5/all/conanfile.py
Expand Up @@ -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"):
Expand Down

0 comments on commit 33f3801

Please sign in to comment.