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 root
  • c:\myproject\wscript: waf build script
  • c:\myproject\source: source code
  • c:\myproject\project\eclipse: eclipse workspace
  • c:\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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -