Help with Visual Studio Post-Build conditional commands

Job ID: 37450918

Budget: $30 – $250 AUD

I have Intel Fortran code that uses the fpp pre-processor.

In my code, I am using conditional compilation with pre-processor constructs like:

#if conApplicationName==1

....

#endif

I want to use similar logic in the Visual Studio Post-Build commands.

I have had success with a VB.NET project, using a Preprocessor Definition:

conVB6ApplicationName="HIPAVE"


Then, the Post-Build command:

if "$(DefineConstants.Contains('HIPAVE'))" == "True" copy "$(TargetPath)" "$(TargetDir)HIPAVE Launcher\HIPAVE_Floating_Launcher.exe" /Y

worked.

But now my Project is Intel Fortran.

Again, my Preprocessor Definition:

conVB6ApplicationName="HIPAVE"

But now, I get this warning:

1>Project : warning PRJ0018 : The following environment variables were not found:

1>$(DefineConstants.Contains('HIPAVE')

Is there some other property in a VS project where I can define conVB6ApplicationName="HIPAVE"?

Regards,

Leigh