mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Fix issue building against copy of Python that was compiled with MSVC 2010
This commit is contained in:
parent
335debee54
commit
6259feb934
@ -2951,9 +2951,12 @@ if GetTarget() == 'windows' and "VISUALSTUDIO" in SDK:
|
|||||||
crtname = "Microsoft.VC%s.CRT" % (vcver)
|
crtname = "Microsoft.VC%s.CRT" % (vcver)
|
||||||
dir = os.path.join(SDK["VISUALSTUDIO"], "VC", "redist", GetTargetArch(), crtname)
|
dir = os.path.join(SDK["VISUALSTUDIO"], "VC", "redist", GetTargetArch(), crtname)
|
||||||
|
|
||||||
if os.path.isdir(dir):
|
if os.path.isfile(os.path.join(dir, "msvcr" + vcver + ".dll")):
|
||||||
CopyFile(GetOutputDir() + "/bin/", os.path.join(dir, "vcruntime" + 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"))
|
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"))
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user