I'm trying to build an i686 RPM package on a x86_64 Linux machine. 

I have a set(CPACK_RPM_PACKAGE_ARCHITECTURE i686) 
but I get an error at CPack time: 
error: No compatible architectures found for build 

I can get it to work if I also use setarch when calling rpmbuild giving it the 
CPack generated RPM spec file, like so: 
setarch i686 rpmbuild --bb --define "_topdir $PWD" --buildroot $PWD/<mypath> 
SPECS/myspec.spec 


Doing the equivalent for a Debian package seemed to work by simply setting 
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386) 

Is there some way to make this work automatically within cpack? 

Thanks, 
Clint 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to