Skip to content

Commit d8e864f

Browse files
committed
hdf5 - Fix builddirs, add cmake_find_package_multi
find-package required for finding MPI
1 parent e793fa1 commit d8e864f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes/hdf5/all/conanfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Hdf5Conan(ConanFile):
3939
"parallel": False,
4040
}
4141

42-
generators = "cmake"
42+
generators = "cmake", "cmake_find_package_multi"
4343

4444
@property
4545
def _source_subfolder(self):
@@ -244,6 +244,7 @@ def _config_libname(lib):
244244
self.cpp_info.components[component_name].set_property("cmake_build_modules", [self._module_file_variables_rel_path])
245245
self.cpp_info.components[component_name].libs = [_config_libname(alias_target)]
246246
self.cpp_info.components[component_name].requires = requirements
247+
self.cpp_info.components[component_name].builddirs = [os.path.join("lib", "cmake")]
247248

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

0 commit comments

Comments
 (0)