Skip to content

Commit 3bcf852

Browse files
committed
netcdf: remove MS runtime files
1 parent 4ee187a commit 3bcf852

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: recipes/netcdf/all/conanfile.py

+5
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ def package(self):
106106
os.remove(filename)
107107
tools.rmdir(os.path.join(self.package_folder, "share"))
108108

109+
if self.settings.os == "Windows":
110+
for dll_file in glob.glob(os.path.join(self.package_folder, "bin", "*.dll")):
111+
if os.path.basename(dll_file).startswith(("concrt", "msvcp", "vcruntime")):
112+
os.unlink(dll_file)
113+
109114
def package_info(self):
110115
self.cpp_info.names["cmake_find_package"] = "netCDF"
111116
self.cpp_info.names["cmake_find_package_multi"] = "netCDF"

0 commit comments

Comments
 (0)