Finalbuilder: Conditional Define not working for XE7 build

Hello,
I am using Finalbuilder to build Delphi packages for Delphi 5 to XE7. I am using a project variable “CONDDEF” to include a conditional definition to distinguish between trial and release build. This works fine for Delphi 5 up to XE6. For some reason, the variable is not being recognized when building the packages for Delphi XE7. For the moment I can work around that issue by adding “extra command line options” (-D%CONDDEF%).
Regards,
Stefan

Hi Stefan

I’m not able to reproduce this here. What options do you have set on the action? If you are loading settings from the project settings file (dproj) then make you have the correct Config set (ie release or debug).

On the Compiler tab, check the “Keep generated .cfg file” option, that will create a projectname.used file in the same folder as the dpk. This has all the options passed to the compiler.

BTW, a small trick for testing defines, in your source code :
[code] {$IFDEF MYDEFINE}{$MESSAGE ‘MYDEFINE’}{$ENDIF}[/code]

This allows you to check the compiler output to see if the define was specified.