Skip to content

Commit

Permalink
netcdf: remove MS runtime files
Browse files Browse the repository at this point in the history
  • Loading branch information
d70-t committed Jul 1, 2020
1 parent 4ee187a commit 3bcf852
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/netcdf/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ def package(self):
os.remove(filename)
tools.rmdir(os.path.join(self.package_folder, "share"))

if self.settings.os == "Windows":
for dll_file in glob.glob(os.path.join(self.package_folder, "bin", "*.dll")):
if os.path.basename(dll_file).startswith(("concrt", "msvcp", "vcruntime")):
os.unlink(dll_file)

def package_info(self):
self.cpp_info.names["cmake_find_package"] = "netCDF"
self.cpp_info.names["cmake_find_package_multi"] = "netCDF"
Expand Down

0 comments on commit 3bcf852

Please sign in to comment.