#246 vpaths filepaths are relative to the root premake file.

4.4
closed-fixed
starkos
Other (49)
5
2013-11-07
2012-02-23
Anonymous
No

I have hierarchical setup of premake4.lua files that branch into the subfolders together with my code. The root premake file contains the solution information and includes the premake files of the projects it consists of using include "subdir/subdir".

The premake file in this sub directory can use the files {} function to add files to the project using a path relative to that project premake file.
The problem kicks in when using that same relative path for the vpaths as that path has to be relative to the first premake file, in this case my solution premake file. I found this quite weird.

I have compiled the latest premake from the premake-stable and -dev repositories.

p.s.
I have this setup so that I can easily create new solutions which use these projects (static libraries).

Discussion

  • starkos
    starkos
    2012-03-06

    • assigned_to: nobody --> starkos
     
  • starkos
    starkos
    2013-11-07

    • status: open --> closed-fixed
     
  • starkos
    starkos
    2013-11-07

    I am unable to reproduce this; I believe this was addressed in a previous fix. If you are still having the the issue, feel free to reopen. If you could include a simple project script which demonstrates the issue that would be a huge help.