diff --git a/utils/fppkg/pkgoptions.pp b/utils/fppkg/pkgoptions.pp index d2a9dee7d7..5db75bc700 100644 --- a/utils/fppkg/pkgoptions.pp +++ b/utils/fppkg/pkgoptions.pp @@ -450,8 +450,8 @@ end; function TCompilerOptions.LocalUnitDir:string; begin - if FLocalInstallDir<>'' then - result:=FLocalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim + if LocalInstallDir<>'' then + result:=LocalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim else result:=''; end; @@ -459,8 +459,8 @@ end; function TCompilerOptions.GlobalUnitDir:string; begin - if FGlobalInstallDir<>'' then - result:=FGlobalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim + if GlobalInstallDir<>'' then + result:=GlobalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim else result:=''; end;