Skip to content

Commit d48eab0

Browse files
(#14018) hdf5: allow usage of native built for cross
Signed-off-by: Pavel Boldin <[email protected]>
1 parent b41fefd commit d48eab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

recipes/hdf5/all/conanfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ def requirements(self):
8080
self.requires("openmpi/4.1.0")
8181

8282
def validate(self):
83-
if hasattr(self, "settings_build") and tools.cross_building(self, skip_x64_x86=True):
84-
# While building it runs some executables like H5detect
85-
raise ConanInvalidConfiguration("Current recipe doesn't support cross-building (yet)")
8683
if self.options.parallel:
8784
if self.options.enable_cxx:
8885
raise ConanInvalidConfiguration("Parallel and C++ options are mutually exclusive")
@@ -96,6 +93,9 @@ def source(self):
9693
tools.get(**self.conan_data["sources"][self.version], destination=self._source_subfolder, strip_root=True)
9794

9895
def build(self):
96+
if hasattr(self, "settings_build") and tools.cross_building(self, skip_x64_x86=True):
97+
# While building it runs some executables like H5detect
98+
raise ConanInvalidConfiguration("Current recipe doesn't support cross-building (yet)")
9999
self._patch_sources()
100100
cmake = self._configure_cmake()
101101
cmake.build()

0 commit comments

Comments
 (0)