Skip to content

Commit 024a357

Browse files
authored
hdf5: Protect call to check_min_cppstd() when appropriate (#28381)
1 parent 847d1d0 commit 024a357

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
@@ -96,7 +96,8 @@ def validate(self):
9696
raise ConanInvalidConfiguration("with_zlib and with_zlibng cannot be enabled at the same time")
9797
if self.options.get_safe("with_zlibng") and Version(self.version) < "1.14.5":
9898
raise ConanInvalidConfiguration("with_zlibng=True is incompatible with versions prior to v1.14.5")
99-
check_min_cppstd(self, "11")
99+
if self.options.enable_cxx:
100+
check_min_cppstd(self, "11")
100101

101102
def validate_build(self):
102103
if cross_building(self) and Version(self.version) < "1.14.4.3":

0 commit comments

Comments
 (0)