netcdf_c: depends on cxx when building with CMake (#50392)

This commit is contained in:
Jon Rood
2025-05-16 08:36:16 -06:00
committed by GitHub
parent 4d55fe6284
commit 31d48ba011

View File

@@ -139,6 +139,7 @@ class NetcdfC(CMakePackage, AutotoolsPackage):
variant("zstd", default=True, description="Enable Zstandard compression plugin") variant("zstd", default=True, description="Enable Zstandard compression plugin")
depends_on("c", type="build") depends_on("c", type="build")
depends_on("cxx", type="build", when="build_system=cmake")
with when("build_system=cmake"): with when("build_system=cmake"):
# Based on the versions required by the root CMakeLists.txt: # Based on the versions required by the root CMakeLists.txt: