Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change exe name based on conditional define

Status
Not open for further replies.

DjangMan

Programmer
Jun 1, 2001
1,785
CA
Is there a way that I can change the name of the executable based on a conditional define? I don't see any switches that the compiler provides. I can create a post compile action to rename the .exe I suppose but I was hoping to keep the configuration within source code.

The idea is that if I define XYZ when I compile then the exe will be called 'ProgramA.exe' and if I haven't defined XYZ then the exe will be called 'ProgramB.exe'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top