netcdf-c package: Skip problematic post install on Windows (#43039)

#42878 adds a post install filter of the netCDFConfig.cmake file
that replaces a valid CMake target on Windows with an invalid one.
Don't do this replacement on Windows.
This commit is contained in:
John W. Parent 2024-03-05 23:44:36 -05:00 committed by GitHub
parent 9d962f55b0
commit e685d04f84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -358,6 +358,8 @@ def patch_hdf5_pkgconfigcmake(self):
due to incorrectly using hdf5 target names
https://github.com/spack/spack/pull/42878
"""
if sys.platform == "win32":
return
pkgconfig_file = find(self.prefix, "netcdf.pc", recursive=True)
cmakeconfig_file = find(self.prefix, "netCDFTargets.cmake", recursive=True)