-
-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(premake5) It seems that in visual studio, "Additional Include Directories" is not generated properly #90
Comments
No.. it should not use the |
I've never had a problem with this. Can you provide a small sample that demonstrates the problem you're seeing? |
@tvandijck you are right, later I found it work. Maybe I made some mistakes at the first time.
and my premake5.lua is :
Without |
So, you've specified the include path as a solution property, and also specified that the solution should be located in build/. |
I doubt many people try to do this, but it does raise questions about this (and other) options being specified at the solution scope... |
@TurkeyMan Thanks for your explanation. |
What is this "prompt for #include"? |
For what it is worth however... this is not unique behavior to just includedirs, this is the same with vpaths, which is why we needed support for tokens in there, so we could setup global vpaths in the solution, but still use %{prj.basedir} as the basedirectory... it's somewhat cumbersome, and maybe a food for thought. |
Premake converts all paths to absolute at the time they are received from the script, and then to project relative at export time. If that isn't working transparently, regardless of at which scope the paths were specified, then it should be considered a bug. Small examples that demonstrate the problem would be helpful. |
includedirs { "src" }
in premake config file will generate..\src;%(AdditionalIncludeDirectories)
for Additional Include Directories in visual studio 2013. But..\src
seems only relative to the current code source file, not relative to$(ProjectDir)
. Should premake add$(ProjectDir)
before..\src
?The text was updated successfully, but these errors were encountered: