Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28446 Discussions

Is it possible to access a Conditional Compilation constant in a Post-Build Event?

Leigh_Wardle1
Beginner
570 Views

Hi,

I'm using Intel Visual Fortran Composer XE for Windows 2013 SP1.3.202.

Some code I have uses Conditional Compilation to build two different applications.
I build them one at a time, changing the value of conApplicationName back and forth between 1 and 2.

Currently, the project is called App1, so the executable is App1.exe.
When I build App2, I manually change the App1.exe name to App2.exe.
This is messy and error-prone.

Is it possible to access a Conditional Compilation constant in a Post-Build Event?

Regards,
Leigh

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
551 Views

I would use two different project configurations for this. Each configuration can have its own EXE name and preprocessor defines.

0 Kudos
Leigh_Wardle1
Beginner
515 Views

Thanks, Steve.

 

Regards,

Leigh

0 Kudos
Reply