premake / premake/premake-core
target.abspath returns a relative path
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 654
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 13
Description
%{cfg.buildtarget.abspath} returns a relative path instead of an absolute path.
My usage :
filter "options:not static"
kind "SharedLib"
postbuildcommands ("{COPY} %{cfg.buildtarget.abspath} "..os.getcwd().."/../")
I'm on windows, building for vs2013
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on Windows with the shown Lua configuration and the VS2013 generator, starting from the %{cfg.buildtarget.abspath} entry point. Trace how the build target path is resolved and verify that the result is absolute; done means the post-build command receives an absolute path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100