I'd like to check if a package is installed to add conditional defines.
Following the wiki instructions, i added this script in Compiler Options/
Other / Conditionals of a package
PackageName := GetIDEValue('$PkgName(''LCL'')');
if Defined(PackageName) then begin
CustomOptions := '"' + PackageName + '"';
end;
There's no dedicated macro to check if a package is installed so i tried to
use $PkgName macro.
Unfortunately, the PackageName is always empty
Is this the correct way to call the $PkgName macro?
Any hints?
Refs:
http://wiki.lazarus.freepascal.org/Macros_and_Conditionals
http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames
Luiz
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus