Break link between target and imp lib extension; setting a custom target extension will no longer change the imp lib extension

This commit is contained in:
Jason Perkins 2012-07-11 15:53:21 -04:00
parent 5912e3bbdf
commit 0ff8a15947
2 changed files with 15 additions and 1 deletions

View File

@ -61,7 +61,7 @@
prefix = cfg[field.."prefix"] or cfg.targetprefix or prefix
suffix = cfg[field.."suffix"] or cfg.targetsuffix or suffix
extension = cfg[field.."extension"] or cfg.targetextension or extension
extension = cfg[field.."extension"] or extension
local info = {}
info.directory = project.getrelative(cfg.project, directory)

View File

@ -112,3 +112,17 @@
i = prepare()
test.isequal("libMyProject.a", i.name)
end
--
-- The import library extension should change if the a
-- custom target extension is set.
--
function suite.impLibExtensionUnmodified_OnCustomTargetExt()
system "windows"
kind "SharedLib"
targetextension ".mil"
i = prepare()
test.isequal("MyProject.lib", i.name)
end