1

I try to build a_project (3rd party) where:

a_project.gpr
--> with config.gpr
--> with a_lib.gpr

a_lib.gpr
--> with config.gpr

note 1: config.gpr in a_lib and a_project are distinct files.
note 2: both config.gpr are 'abstract project'.

The building process tells me:

config.gpr:15:18: duplicate project name "config"
config.gpr:15:18: already in "...\a_lib\config.gpr"

What should be done to make this work?

Thx.

douche_satan
  • 179
  • 2
  • 7
  • using `config.gpr` for 2 projects in the chain is a bad idea. Rename one of them. gprbuild has no way of knowing which is which (note that in the projects you just reference `config'Source_Dirs` or such so it uses project name, not path. – Jean-François Fabre Nov 13 '18 at 13:23
  • @Jean-FrançoisFabre "note that in the projects you just reference config'Source_Dirs or such so it uses project name, not path" I dont get this one? – douche_satan Nov 13 '18 at 13:58
  • @Jean-FrançoisFabre 1- It looks like it's working for the author of those projects. 2- Would it not be great if gprbuild could distinguish per project 'naming'? It 'feels ok' that each project provide a config.gpr file definition... doesn't it? – douche_satan Nov 13 '18 at 14:10
  • each project, yes, but you cannot mix them. Maybe the original author used an older version of gprbuild where it didn't check this particular point. – Jean-François Fabre Nov 13 '18 at 16:05
  • it should be too difficult to rename one of the config files, inside it (project config => project config2) and the with statements. Then it's done :) – Jean-François Fabre Nov 13 '18 at 17:14

0 Answers0