[CMake] iOS multi-arch library target and xcodebuild
Bill Hoffman
bill.hoffman at kitware.com
Wed Jun 24 16:03:27 EDT 2015
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
> <https://github.com/ruslo/sugar/wiki/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 been using this in combination with the
> Hunter CMake package manager <https://github.com/ruslo/hunter> for Android
> and iOS universal builds.
>
> For convenience, here is a link to the patched CMake version from that page
> CMake <https://github.com/ruslo/CMake> . Note that this will currently
> build static universal libraries only, but I believe support for dynamic
> libraries (for use in iOS 8 dynamic frameworks) is currently being added.
>
> To build the patched CMake with proper external project behavior, I had to
> pass it CMAKE_USE_SYSTEM_CURLE=YES. So given your system cmake, you could
> build it with something like this (with your preferred cmake install
> prefix):
>
> wget https://github.com/ruslo/CMake/archive/v3.2.1-p3.tar.gz
> tar zxvf v3.2.1-p3.tar.gz
> cd CMake-3.2.1-p3
> cmake -H. -B_builds -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON
> -DCMAKE_INSTALL_PREFIX=_install -DCMAKE_USE_SYSTEM_CURL=YES
>
> David
>
>
>
> --
> View this message in context: http://cmake.3232098.n2.nabble.com/iOS-multi-arch-library-target-and-xcodebuild-tp7590155p7590919.html
> Sent from the CMake mailing list archive at Nabble.com.
>
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the CMake
mailing list