File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-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" )
@@ -92,6 +89,11 @@ def validate(self):
92
89
not self .options ["szip" ].enable_encoding :
93
90
raise ConanInvalidConfiguration ("encoding must be enabled in szip dependency (szip:enable_encoding=True)" )
94
91
92
+ def validate_build (self ):
93
+ if hasattr (self , "settings_build" ) and tools .cross_building (self , skip_x64_x86 = True ):
94
+ # While building it runs some executables like H5detect
95
+ raise ConanInvalidConfiguration ("Current recipe doesn't support cross-building (yet)" )
96
+
95
97
def source (self ):
96
98
tools .get (** self .conan_data ["sources" ][self .version ], destination = self ._source_subfolder , strip_root = True )
97
99
You can’t perform that action at this time.
0 commit comments