You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My intention is to have forced-header.h be included in all the files in the src folder, and as the docs say Paths should be specified relative to the currently running script file.
Instead, the generated solutions don't work as expected, with the gmake2 and msvc targets also differing in their behaviour:
In the msvc target, the forceinclude is checked from the source file's current path, and to have it be found by the compiler, it has to be passed as forceincludes { "../forced-header.h" } to premake
In the gmake2 target, the search path is the path the generated makefile is in, so in this case the build directory, and to have it found it has to be passed as forceincludes { "../subproject/forced-header.h" } to premake
What did you expect to happen?
The function behaves as described and the targets properly find the header, or at least "break" in a consistent way
How can we reproduce this?
Visual Studio 2022 (vs2022)
Visual Studio 2019 (vs2019)
Visual Studio 2017 (vs2017)
Visual Studio 2015 (vs2015)
Visual Studio 2012 (vs2012)
Visual Studio 2010 (vs2010)
Visual Studio 2008 (vs2008)
Visual Studio 2005 (vs2005)
GNU Makefile (gmake)
GNU Makefile 2 (gmake2)
XCode (xcode)
Codelite
Other (Please list below)
What version of Premake are you using?
premake5 (Premake Build Script Generator) 5.0.0-beta2
The text was updated successfully, but these errors were encountered:
What seems to be the problem?
I'm using premake with a project that has a structure like this
this is the content of the topmost premake5.lua file
this is the content of the second premake5.lua
My intention is to have
forced-header.h
be included in all the files in the src folder, and as the docs sayPaths should be specified relative to the currently running script file.
Instead, the generated solutions don't work as expected, with the gmake2 and msvc targets also differing in their behaviour:
forceincludes { "../forced-header.h" }
to premakebuild
directory, and to have it found it has to be passed asforceincludes { "../subproject/forced-header.h" }
to premakeWhat did you expect to happen?
The function behaves as described and the targets properly find the header, or at least "break" in a consistent way
How can we reproduce this?
What version of Premake are you using?
premake5 (Premake Build Script Generator) 5.0.0-beta2
The text was updated successfully, but these errors were encountered: