Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2013-05-02 19:51:52 +0400
committerJason Perkins <starkos@industriousone.com>2013-05-02 19:51:52 +0400
commit5f962a893c4cf642b3666405b145162d548f86b8 (patch)
treea356c657ce9ceac2a4fb87bc3cef9a7a9a55cb74 /src
parent8f367712a3a92fc3fc70e72894ab5fe7075f2490 (diff)
Fix bug 171: ImpLib used incorrectly in dependency paths
Diffstat (limited to 'src')
-rw-r--r--src/base/project.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/base/project.lua b/src/base/project.lua
index 9c8b4db..0fc6b04 100644
--- a/src/base/project.lua
+++ b/src/base/project.lua
@@ -479,7 +479,11 @@
end
-- Initialize the target components
- local field = iif(direction == "build", "target", "implib")
+ local field = "build"
+ if direction == "link" and cfg.kind == "SharedLib" then
+ field = "implib"
+ end
+
local name = cfg[field.."name"] or cfg.targetname or cfg.project.name
local dir = cfg[field.."dir"] or cfg.targetdir or path.getrelative(cfg.location, cfg.basedir)
local prefix = ""