You are not logged in.
Hi, I need to reliably check SYNOPSE_FRAMEWORK_VERSION between 2.2 stable and 2.2 main to adjust a code, I tried doing:
{$IF StrToIntDef(Copy(SYNOPSE_FRAMEWORK_VERSION, Length(SYNOPSE_FRAMEWORK_VERSION) - 4, 4), 0) >= 8236}
but it didn't work... I'm on lazarus 3.7/FPC 3.2.3 atm but the code should be compatible with Delphi as well.
Does anyone have an idea on how I should do this check? Thanks in advance
Offline
You can't execute code within compiler directives, by design.
I have added some MORMOT* conditionals from now on:
https://github.com/synopse/mORMot2/commit/dd6ab8ab
But nothing retroactive.
Note that I will release mORMot 2.3 today.
Do you have any last minute complain/notification/warning about the current state of the code, which may prevent a release?
Offline
Thanks ab, those directives will solve the issue and since it'll be a new release I'll aim the compatibility into it
Also the .lpk should replicate the version info, its still 2.0.1
Last edited by Mobius1 (2024-10-16 08:33:45)
Offline
Lazarus package is still on 2.0.1 on stable 2.3:
https://prnt.sc/jqwVHOOTEixj
You should consider updating this number, so any other packages who depends on mORMot2 can make a better version-aware depedancy with it, for example:
https://prnt.sc/QRDDnOncArm4
Offline