netcdf_c: depends on cxx when building with CMake (#50392)
This commit is contained in:
parent
4d55fe6284
commit
31d48ba011
@ -139,6 +139,7 @@ class NetcdfC(CMakePackage, AutotoolsPackage):
|
||||
variant("zstd", default=True, description="Enable Zstandard compression plugin")
|
||||
|
||||
depends_on("c", type="build")
|
||||
depends_on("cxx", type="build", when="build_system=cmake")
|
||||
|
||||
with when("build_system=cmake"):
|
||||
# Based on the versions required by the root CMakeLists.txt:
|
||||
|
Loading…
Reference in New Issue
Block a user