So here’s a build scenario I’m trying to work through… I’m building N distinct code generators each producing one of N different sources. Everything works as expected when compiling for host. However,
- The code generators are very slow when run through an emulator, so cross-compiling everything with a single toolchain is no good.
- Doing an
export+find_packagedance breaks parallelism between building the code generators and building their outputs (and other things in the cross build). - The approach in (2) requires manually rerunning two builds during development (instead of just one), which is tedious.
- Using
ExternalProjectsolves (3), but:
a. The superbuild binary directory does the wrong thing when runningctestorcmake --install, and
b. It still doesn’t solve the parallelism issue.
Does anyone know of an approach that works just as well for cross-builds as it does for host-builds?