From 82d63ae2137790a3201a269724eab57d874ef0d5 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 11 Jul 2016 15:03:40 -0700 Subject: [PATCH] Windows static link fix --- lime/tools/platforms/WindowsPlatform.hx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lime/tools/platforms/WindowsPlatform.hx b/lime/tools/platforms/WindowsPlatform.hx index 476dfe880..57e99fd09 100644 --- a/lime/tools/platforms/WindowsPlatform.hx +++ b/lime/tools/platforms/WindowsPlatform.hx @@ -274,13 +274,21 @@ class WindowsPlatform extends PlatformTarget { if (targetType == "cpp" && project.targetFlags.exists ("static")) { + var suffix = ".lib"; + + if (Sys.getEnv ("VS140COMNTOOLS") != null) { + + suffix = "-19.lib"; + + } + for (i in 0...project.ndlls.length) { var ndll = project.ndlls[i]; if (ndll.path == null || ndll.path == "") { - context.ndlls[i].path = PathHelper.getLibraryPath (ndll, "Windows", "lib", ".lib", project.debug); + context.ndlls[i].path = PathHelper.getLibraryPath (ndll, "Windows", "lib", suffix, project.debug); }