Hi,

 

While digging the clean issue brought up by Soby, I started wondering if external dependency handling would be better in a slightly different way. There is a lot of hack in the build system around including the psa-arch test project, mostly to work around cmake limitations on namespaces and symbol separation. A stronger barrier could eliminate the mess. In TS we use the following pattern (let’s call it “Internal Project”):

 

This is very similar to how external projects work in cmake, but makes better integration possible. The main project can use information from the dependency as it’s source and output files become available configuration time. In turn external project changes are harder to track.

 

/George