What I am looking for is a compiler define, one that has been set like thisWhat Wallaby and lucamar posted is the correct approach. Though you need to add the LazVersion unit to your uses clause to be able to check for the constants using compiler directives (and it will only work after the whole uses clause is parsed).
{$DEFINE Lazarus=1.8.4}
This would need to be global of course