gprinstall prefix in project file

116 Views Asked by At

The gprinstall program part of the GNAT tool-set seems to ignore the prefix attribute in the project file. It does use the --prefix when specified on the command line. Is there a way to force it to use the prefix in the project file?

1

There are 1 best solutions below

0
On

In your project file, you simply add the package Install, where you declare which prefix you want to use:

   package Install is
      for Prefix use "/tmp/installed";
   end Install;

If you declare a relative path, it will be prefixed with either the default prefix or the one passed on the command line.

See the manual for further details.