diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2024-03-05 23:44:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 21:44:36 -0700 |
commit | e685d04f8454bd26e848e64218d0e8a0b9084f1a (patch) | |
tree | d37fd71a5448a30c616309f105b917acfbd541d1 | |
parent | 9d962f55b0bc2de6385721a3a6df997d6a0af57d (diff) | |
download | spack-e685d04f8454bd26e848e64218d0e8a0b9084f1a.tar.gz spack-e685d04f8454bd26e848e64218d0e8a0b9084f1a.tar.bz2 spack-e685d04f8454bd26e848e64218d0e8a0b9084f1a.tar.xz spack-e685d04f8454bd26e848e64218d0e8a0b9084f1a.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/netcdf-c/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ class CMakeBuilder(BaseBuilder, cmake.CMakeBuilder): 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) |