Re: [CMake] CPack - Mac OS X Universal dmg

2010-06-21 Thread Nick Bolton
Dave, On 20 June 2010 18:02, Dave Partyka dave.part...@kitware.com wrote: When configuring your build set CMAKE_OSX_ARCHITECTURES  to both the architectures you wish to build. For example 'i386;ppc'. This will produce libraries/executables with both architectures embedded in them. You can

[CMake] CPack - Mac OS X Universal dmg

2010-06-20 Thread Nick Bolton
Hello, I would like to build a Mac OS X Universal dmg using cpack, but currently we're building an i386 - how might we build universal instead? Here's our CPack config: http://code.google.com/p/synergy-plus/source/browse/trunk/cmake/CMakeLists_cpack.txt Nick

Re: [CMake] CPack - Mac OS X Universal dmg

2010-06-20 Thread Dave Partyka
When configuring your build set *CMAKE_OSX_ARCHITECTURES * to both the architectures you wish to build. For example 'i386;ppc'. This will produce libraries/executables with both architectures embedded in them. You can check this by just running the 'file' command on any of the

Re: [CMake] CPack - Mac OS X Universal dmg

2010-06-20 Thread Michael Wild
This is OK for the easy case, where the source code doesn't require special defines to be set depending on the architecture. Some projects define symbols, such as FOO_PPC or FOO_X86 on the command line, instead of doing the detection in-source using e.g. __ppc__ or __x86_64__, respectively. In