In several post in the past months there were examples how to differentiate in .gpr files between different targets. But how to do that differentiation if the gpr file needs different “with” clauses for different targets. E.g, for Windows an app that wants to use the console (CMD) in virtual terminal emulation mode, so that it can use xterm ESC sequences to manipulate cursor and color, needs to set that mode for the console. That app uses the Win32ada library to do so and the .gpr consequently needs a “with win32ada;” clause. However, on Linux Win32ada is of course not available and not needed for this purpose (the tty is almost always xterm compliant).
Is there a way to avoid the use of 2 different .gpr files ?