Open mmunoz-gmv opened 6 years ago
Good question - this is really an autoproj issue I think.
Reported in the autoproj repo.
Actually, this comes from the init.rb in the package set. It's probably not an autoproj issue, but we're using a wrong autoproj command (env_inherit).
The variables generated by the init.rb script in env.sh are set like this:
This causes that, when env.sh is sourced more than once, paths are appended to the environment variables several times.
If a variable is expected to contain a list of paths, for instance PATH, this is harmless. But if it is expected to contain a single path, for instance CMAKE_PREFIX_PATH, it causes problems. There should be a way to define the variables in init.rb so that the path is not appended, but I couldn't find it. Any suggestions?