From e17c66ab4ba18fd9bab0248f1e97a2b74f626828 Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 17 Mar 2019 21:15:16 +0000 Subject: [PATCH] projectgroups: fixed adding missing targets, bug #35243 git-svn-id: branches/fixes_2_0@60713 - --- components/projectgroups/projectgroup.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/projectgroups/projectgroup.pp b/components/projectgroups/projectgroup.pp index 7894830bea..6bccece642 100644 --- a/components/projectgroups/projectgroup.pp +++ b/components/projectgroups/projectgroup.pp @@ -729,7 +729,6 @@ begin RaiseGDBException(AFileName); if CompareFilenames(AFileName,FileName)=0 then raise Exception.Create(lisInvalidCycleAProjectGroupCannotHaveItselfAsTarget); - if not FileExistsCached(AFileName) then exit; Result:=TIDECompileTarget.Create(CompileTarget); Result.FileName:=AFileName; FTargets.Add(Result); @@ -870,6 +869,7 @@ begin begin Target:=TIDECompileTarget(AddTarget(TargetFileName)); Target.Removed:=True; + Include(Options,pgloRemoveInvalid); end; else exit;