File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,6 @@ def requirements(self):
80
80
self .requires ("openmpi/4.1.0" )
81
81
82
82
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)" )
86
83
if self .options .parallel :
87
84
if self .options .enable_cxx :
88
85
raise ConanInvalidConfiguration ("Parallel and C++ options are mutually exclusive" )
@@ -96,6 +93,9 @@ def source(self):
96
93
tools .get (** self .conan_data ["sources" ][self .version ], destination = self ._source_subfolder , strip_root = True )
97
94
98
95
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)" )
99
99
self ._patch_sources ()
100
100
cmake = self ._configure_cmake ()
101
101
cmake .build ()
You can’t perform that action at this time.
0 commit comments