I'm trying to build a 32bit library on my 64bit system with cmake. The first part is easy, pass -m32 to the C/CXX flags, but this library includes a code generator and if the target and host parameters don't 100% match, cmake assumes it's cross-compiling and then requires import executables for the "host" system.

When I build a package using rpmbuild --target i686 everything works as expected so I assume rpmbuild is setting up some stuff in the background to make this happen.

I was trying to see if I could get verbose output from rpmbuild but I built the package 3 times, once without verbose, once, with, and one with -vv.

Other than the expected differences (tmp dirs, etc) all the logs are identical which would indicate to me that the verbose options aren't doing anything.

What gives?

Thanks,
Richard