Looking for best practice: Delphi Projects w/ Individual SearchPath

I am currently in the process of creating FB projects for some existing Delphi projects.

Usually, all Delphi projects that I work with, have all of their dependencies in Git Submodules. That means that the projects have according relative SearchPaths configured that point to their individual sub module directories.

That way, all of these projects are compilable, regardless of how Delphi is globally configured.

The problem is now that it seems FB is not able to resolve these relative paths.

I am already using %FBPROJECTDIR% to configure the FB project itself to make it independent of its actual location.

Do I need to duplicate a Delphi project’s search path in FB’s Delphi action (using that variable) or are there other options?

Relative paths should be fine in the SearchPaths - I use them all the time.

I would need to see the settings you have on the action to figure out what is going on.

On the project tab, what do you have set under “Options source”. Make sure you have the correct Project config set.

I found the real culprit: I missed the point that FB doesn’t set DEBUG/RELEASE conditionals (by default). User error that is :slight_smile:
Works fine now, thanks for looking into it!

1 Like