Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-25 Thread Ruslan Baratov via CMake
On 25-Jun-15 12:14, Eric Wing wrote: * iOS toolchains I'm using: https://github.com/ruslo/polly (used to switch between different SDKs + to add some flags, like -std=c++11) Do you have to use a different toolchain for every different variant and different OS version? That's rather unfortunate if

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-25 Thread Eric Wing
> * iOS toolchains I'm using: https://github.com/ruslo/polly (used to > switch between different SDKs + to add some flags, like -std=c++11) Do you have to use a different toolchain for every different variant and different OS version? That's rather unfortunate if so. My current tweaks don't requir

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-25 Thread Ruslan Baratov via CMake
On 25-Jun-15 02:26, Eric Wing wrote: On 6/24/15, Ruslan Baratov via CMake wrote: On 24-Jun-15 23:03, Bill Hoffman wrote: What is in the patched CMake? * workaround for bug: http://public.kitware.com/Bug/view.php?id=12506 * installing universal simulator + device library CMake already support

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-24 Thread Eric Wing
On 6/24/15, Ruslan Baratov via CMake wrote: > On 24-Jun-15 23:03, Bill Hoffman wrote: >> What is in the patched CMake? > * workaround for bug: http://public.kitware.com/Bug/view.php?id=12506 > * installing universal simulator + device library >> CMake already supports mulit-arch libraries on the A

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-24 Thread Ruslan Baratov via CMake
On 24-Jun-15 23:03, Bill Hoffman wrote: What is in the patched CMake? * workaround for bug: http://public.kitware.com/Bug/view.php?id=12506 * installing universal simulator + device library CMake already supports mulit-arch libraries on the Apple platform. As far as I know you can build two lib

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-24 Thread headupinclouds
The original post was asking for a universal "armv7, arm64, x86_64 (iOS and simulator)" build. I had thought that the iOS simulator x86_64 architecture was not supported in the same FAT library as the arm architectures without the patch, but I could be wrong. Let me know if you think this patch i

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-24 Thread Bill Hoffman
What is in the patched CMake? CMake already supports mulit-arch libraries on the Apple platform. On 6/24/2015 2:18 PM, headupinclouds wrote: Jason, This link ( Building-universal-ios-library ) provides details on creating i

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-06-24 Thread headupinclouds
Jason, This link ( Building-universal-ios-library ) provides details on creating iOS Universal (multi-arch) builds with CMake. It shows both a manual process and a patched CMake version that will accomplish this for you. I've

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Stephen Kelly
Jason Cooper wrote: > Is there a plan to merge the above into cmake as a module? > >> You can of course do something similar for Android: >> >> https://github.com/taka-no-me/android-cmake/blob/master/android.toolchain.cmake > > Ah, thanks for the heads up. I'll need that later. There should be

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Parag Chandra
Jason, I¹ll have to get back to you on that. The problem is the snippets I¹m referring to are part of a much larger build system I¹ve created for Mac, Windows, Linux, iOS, Android, Windows Phone, and Native Client, and so you would likely need a lot of other supporting files to make sense of them.

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Jason Cooper
Parag, On Thu, Apr 02, 2015 at 02:32:13PM +, Parag Chandra wrote: > No idea if they have plans to merge any toolchain files directly into > CMake. Even if they did, cross-compiling is still a process that requires > explicitly overriding your host computer?s native toolchain, so it?s not > som

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Parag Chandra
No idea if they have plans to merge any toolchain files directly into CMake. Even if they did, cross-compiling is still a process that requires explicitly overriding your host computer¹s native toolchain, so it¹s not something that CMake will sort of do for you automatically - you¹re still going to

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Jason Cooper
Parag, On Wed, Apr 01, 2015 at 05:43:25PM +, Parag Chandra wrote: > You need to cross-compile in order to target iOS, but if I?m reading your > command line correctly, you are merely instructing CMake to generate an > Xcode build system for the host OS, which is naturally going to produce a >

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-01 Thread Parag Chandra
Hi Jason, You need to cross-compile in order to target iOS, but if I¹m reading your command line correctly, you are merely instructing CMake to generate an Xcode build system for the host OS, which is naturally going to produce a project that targets Mac OSX. The normal way to cross-compile with C

[CMake] iOS multi-arch library target and xcodebuild

2015-04-01 Thread Jason Cooper
All, I'm in a situation I largely dislike. :-) Executing a project with two large unknowns. The unknowns are cmake and xcode. I'm attempting to automate building the dylib's (and .so once I start on Android) for yajl: https://github.com/lloyd/yajl.git My goal is to run a cron job that pull