Merge pull request #1023 from Gaztin/codelite-libdirs

Include library directories in Codelite projects
This commit is contained in:
Samuel Surtees 2018-04-22 22:43:23 +10:00 committed by GitHub
commit 36a77d26e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -224,6 +224,9 @@
_x(3, '<Linker Required="yes" Options="%s">', table.concat(flags, ";"))
for _, libdir in ipairs(cfg.libdirs) do
_p(4, '<LibraryPath Value="%s"/>', project.getrelative(cfg.project, libdir))
end
_p(3, '</Linker>')
end

View File

@ -93,6 +93,8 @@
codelite.project.linker(cfg)
test.capture [[
<Linker Required="yes" Options="">
<LibraryPath Value="test"/>
<LibraryPath Value="test2"/>
</Linker>
]]
end