From e685d04f8454bd26e848e64218d0e8a0b9084f1a Mon Sep 17 00:00:00 2001 From: "John W. Parent" <45471568+johnwparent@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:44:36 -0500 Subject: [PATCH] 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. --- var/spack/repos/builtin/packages/netcdf-c/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/netcdf-c/package.py b/var/spack/repos/builtin/packages/netcdf-c/package.py index 0ccd9298fe..82d7d6792c 100644 --- a/var/spack/repos/builtin/packages/netcdf-c/package.py +++ b/var/spack/repos/builtin/packages/netcdf-c/package.py @@ -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)