premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

'links' doesn't follow dependency on static libs projects

Open dsvi opened this issue 8 years ago • 17 comments

project "A"
  kind "StaticLib"
...
project "B"
  kind "StaticLib"
  links {"A"}
...
project "C"
  kind "StaticLib"
  links {"B"}

project "App"
  kind "ConsoleApp
  links {"C"} --> not going to be built, since B and A are not included

When there is links dependency on another project, which is a static lib, premake should include all the static lib dependencies of that as well. Otherwise user has to include all of them explicitly in the resulting app or DLL. ( links {"C", "A", "B"} for the App in the example above) Which is troublesome, since the list of libs might be conditional (platform dependent, for example) and user will have to copy/paste the conditions several times over. Note, this isn't a problem for dlls, only for static libraries. Since dll has all it's dependencies built in already.

dsvi avatar Nov 18 '16 14:11 dsvi