Browse Source

* Exampleunits are not compiled, so do not trigger a recompile if they are missing
* If a unit is not compiled for the current target, do not trigger a recompile when it is missing

git-svn-id: trunk@18799 -

joost 14 years ago
parent
commit
46d8af7c9f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/fpmkunit/src/fpmkunit.pp

+ 3 - 3
packages/fpmkunit/src/fpmkunit.pp

@@ -4551,12 +4551,12 @@ begin
   if FForceCompile then
     Result:=true;
 
-  // For now exampleprograms are not compiled at all
-  if ATarget.TargetType = ttExampleProgram then
+  // For now examples are not compiled at all
+  if ATarget.TargetType in [ttExampleUnit, ttExampleProgram] then
     Exit;
 
   // Check output file
-  if not result then
+  if not result and TargetOK(ATarget) then
     begin
       if ATarget.TargetType in ProgramTargets then
         OD:=APackage.GetBinOutputDir(Defaults.CPU,Defaults.OS)