#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.