mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-20 14:19:25 -06:00
Fix issue building against copy of Python that was compiled with MSVC 2010
This commit is contained in:
@@ -2951,9 +2951,12 @@ if GetTarget() == 'windows' and "VISUALSTUDIO" in SDK:
|
||||
crtname = "Microsoft.VC%s.CRT" % (vcver)
|
||||
dir = os.path.join(SDK["VISUALSTUDIO"], "VC", "redist", GetTargetArch(), crtname)
|
||||
|
||||
if os.path.isdir(dir):
|
||||
CopyFile(GetOutputDir() + "/bin/", os.path.join(dir, "vcruntime" + vcver + ".dll"))
|
||||
if os.path.isfile(os.path.join(dir, "msvcr" + vcver + ".dll")):
|
||||
CopyFile(GetOutputDir() + "/bin/", os.path.join(dir, "msvcr" + vcver + ".dll"))
|
||||
if os.path.isfile(os.path.join(dir, "msvcp" + vcver + ".dll")):
|
||||
CopyFile(GetOutputDir() + "/bin/", os.path.join(dir, "msvcp" + vcver + ".dll"))
|
||||
if os.path.isfile(os.path.join(dir, "vcruntime" + vcver + ".dll")):
|
||||
CopyFile(GetOutputDir() + "/bin/", os.path.join(dir, "vcruntime" + vcver + ".dll"))
|
||||
|
||||
########################################################################
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user