Setting C++ build working directory in Eclipse -
i trying set c++ project in eclipse (on windows) uses waf build. eclipse workspace , source files in different directories.
c:\myproject: project rootc:\myproject\wscript: waf build scriptc:\myproject\source: source codec:\myproject\project\eclipse: eclipse workspacec:\myproject\project\eclipse\myproject: eclipse project
waf must executed directory contains wscript.
in project properties, under c/c++ build, build command should python waf. created temporary script @ c:\myproject\temp.cmd containing pwd, , set build command ..\..\..\temp.cmd in order confirm working directory is. build console shows c:\myproject\project\eclipse\myproject when run build.
how can change show c:\myproject?
i wrote wrapper script sets proper working directory.
c:\myproject\project\eclipse\waf.cmd@echo off cd ..\..\.. python waf %* in eclipse set build command ${workspacedirpath}/waf.cmd.
Comments
Post a Comment