Skip to content
Discussion options

You must be logged in to vote

But I also find that almost every generator comes with xmake is doing the same thing: input path(sourcefile), output path(generatedfile). So the question is, should them all be path.absolute, or am I using xmake wrong, that the project can be structured in a more elegant way which this problem just doesn't exist?

xmake will find the top-level xmake.lua directory as the root, even though you have set -P . to force the current path to be the root of the project. However, the xmake lua subprocess will still look for the root xmake.lua, so passing relative paths will be a problem.

Therefore, I do not recommend using includes("...") to reverse include the root xmake.lua, which can cause a …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@find
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@find
Comment options

@waruqi
Comment options

@find
Comment options

Answer selected by find
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants