|set env.variable based on architecture [message #1037275]
||Tue, 09 April 2013 11:15
| Tamas Csabina
Registered: November 2012
I have a project where I need to set an env.variable, but the content if it should be different if this runs on x64 or if it runs on x32 (both Windows by the way).
on x64 bit my env.variable contains:
MYUTILS="c:\program files (x86)\tools\bin"
on x32 bit my env.variable contains:
In a simple batch file I can do this easily (as PROGRAMFILES(x86) is a env.variable only defined on x64bit windows systems):
IF "%PROGRAMFILES(x86)%"=="" (SET progfiles=%PROGRAMFILES%) ELSE SET progfiles=%PROGRAMFILES(x86)%
But how can I do this in an Eclipse project (yes, it has to be stored in the project), by using the C/C++ Build->Environment menu?
Or alternatively I could use any other project option.
Powered by FUDForum
. Page generated in 0.01368 seconds