[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: CDT6.0 container_loc

Thundernail wrote:
have I seen this correct, that the variable 'container_loc' of the build command is not usable any more?
I have seen this solution <http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg14567.html> with ${container_loc} is ${selected_resource_loc}/..

The problem with these variables is that the build plugin is independent of UI plugins and so it cannot expand UI variables. The best you can do is to use build variables like ${ProjDirPath}.


but this does not work for me. Perhaps because it is on Linux and a path like
/home/thundernail/workspace/projectA/path/to/source/source.cpp/.. is not valid.

Is there any solution to set the workdirectory of the make command to the directory of the active file?

If you use "Build Project" command it is always executed in project build directory. As an alternative you could try Make Target view. If you create its target in a subfolder the working directory will be that subfolder. This holds true for not managed build only.


thanks
 Thundernail

Andrew