Skip to content

Commit

Permalink
Fixup builddirs / cmake_build_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
paulharris committed May 26, 2022
1 parent 0a405ff commit e4a6875
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/hdf5/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ def _config_libname(lib):

self.cpp_info.components[component_name].set_property("cmake_target_name", f"hdf5::{alias_target}")
self.cpp_info.components[component_name].set_property("pkg_config_name", alias_target)
self.cpp_info.components[component_name].set_property("cmake_build_modules", [self._module_file_variables_rel_path])
self.cpp_info.components[component_name].set_property("cmake_build_modules", [self._module_file_variables_rel_path, self._module_file_variables_rel_path])
self.cpp_info.components[component_name].libs = [_config_libname(alias_target)]
self.cpp_info.components[component_name].requires = requirements
self.cpp_info.components[component_name].builddirs.append(os.path.join("lib", "cmake"))

# TODO: to remove in conan v2 once cmake_find_package_* generators removed
self.cpp_info.components[component_name].names["cmake_find_package"] = component
Expand Down

0 comments on commit e4a6875

Please sign in to comment.