Skip to content

Commit

Permalink
Put DLLs in OutputPath, not in project directory (in case they differ…
Browse files Browse the repository at this point in the history
… because of --output)
  • Loading branch information
michaliskambi committed Apr 16, 2024
1 parent c9d8fa8 commit ec8555c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build-tool/code/toolproject.pas
Expand Up @@ -542,7 +542,7 @@ procedure TCastleProject.DoCompile(const OverrideCompiler: TCompiler; const Targ

SourceExe := ChangeFileExt(MainSource, ExeExtensionOS(OS));
DestExe := ChangeFileExt(ExecutableName, ExeExtensionOS(OS));
AddExternalLibraries(ExtractFilePath(DestExe));
AddExternalLibraries(OutputPath);
if not SameFileName(SourceExe, DestExe) then
begin
{ move exe to top-level (in case MainSource is in subdirectory
Expand Down

0 comments on commit ec8555c

Please sign in to comment.