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:
parent
9d962f55b0
commit
e685d04f84
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue