[cmake-developers] Fixing bug #12506 (iOS install)
Ruslan Baratov
ruslan_baratov at yahoo.com
Wed Aug 12 19:44:32 EDT 2015
On 07-Aug-15 01:43, Ruslan Baratov via cmake-developers wrote:
> Hi,
>
> I'm thinking about fixing bug
> http://public.kitware.com/Bug/view.php?id=12506 and before I go deeper
> in CMake internals just want to ask is there any work-in-progress
> attempts already or hints/directions of how it can be done?
>
> Thanks, Ruslo
Hi,
Sending patches with fix. Now it's possible to install simulator
libraries by:
> cmake --build _builds --config Release --target install -- -sdk
iphonesimulator
and device libraries by:
> cmake --build _builds --config Release --target install -- -sdk iphoneos
or from Xcode IDE (build target install).
However this commands will install both libraries to the same location.
This behaviour can be improved by adding some code that will do lipo of
all libraries before install (i.e. universal libraries will be
installed). This can be achieved by using ONLY_ACTIVE_ARCHS=NO while
running Xcode build. The only question is about making install target
depends on two type of builds (-sdk iphonesimulator and -sdk iphoneos).
Ruslo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-EFFECTIVE_PLATFORM_NAME-in-cmake_install.cmake.patch
Type: text/x-patch
Size: 2111 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150813/88b1e62b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-install-arguments-for-iOS.patch
Type: text/x-patch
Size: 1272 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150813/88b1e62b/attachment-0001.bin>
More information about the cmake-developers
mailing list