fix targetdir default.

This commit is contained in:
Tom van Dijck 2015-06-30 15:02:52 -07:00
parent 8f8fb3646c
commit c3d9ca6c89

View File

@ -31,7 +31,14 @@
function config.buildtargetinfo(cfg, kind, field)
local basedir = cfg.project.location
local directory = cfg[field.."dir"] or cfg.targetdir or basedir
local targetdir
if cfg.platform then
targetdir = path.join(basedir, 'bin', cfg.platform, cfg.buildcfg)
else
targetdir = path.join(basedir, 'bin', cfg.buildcfg)
end
local directory = cfg[field.."dir"] or cfg.targetdir or targetdir
local basename = cfg[field.."name"] or cfg.targetname or cfg.project.name
local prefix = cfg[field.."prefix"] or cfg.targetprefix or ""