<div dir="ltr">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 isn't needed and I can test without it.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 1:03 PM, Bill Hoffman [via CMake] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7590922&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        What is in the patched CMake?  CMake already supports mulit-arch 
<br>libraries on the Apple platform.
<br><br>On 6/24/2015 2:18 PM, headupinclouds wrote:
<div><div class='shrinkable-quote'><br>> Jason,
<br>>
<br>> This link ( Building-universal-ios-library
<br>> <<a href="https://github.com/ruslo/sugar/wiki/Building-universal-ios-library" rel="nofollow" link="external" target="_blank">https://github.com/ruslo/sugar/wiki/Building-universal-ios-library</a>> Â )
<br>> provides details on creating iOS Universal (multi-arch) builds with CMake.
<br>> It shows both a manual process and a patched CMake version that will
<br>> accomplish this for you.  I've been using this in combination with the
<br>> Hunter CMake package manager <<a href="https://github.com/ruslo/hunter" rel="nofollow" link="external" target="_blank">https://github.com/ruslo/hunter</a>> Â  for Android
<br>> and iOS universal builds.
<br>>
<br>> For convenience, here is a link to the patched CMake version from that page
<br>> CMake <<a href="https://github.com/ruslo/CMake" rel="nofollow" link="external" target="_blank">https://github.com/ruslo/CMake</a>> Â .  Note that this will currently
<br>> build static universal libraries only, but I believe support for dynamic
<br>> libraries (for use in iOS 8 dynamic frameworks) is currently being added.
<br>>
<br>> To build the patched CMake with proper external project behavior, I had to
<br>> pass it CMAKE_USE_SYSTEM_CURLE=YES.  So given your system cmake, you could
<br>> build it with something like this (with your preferred cmake install
<br>> prefix):
<br>>
<br>> wget <a href="https://github.com/ruslo/CMake/archive/v3.2.1-p3.tar.gz" rel="nofollow" link="external" target="_blank">https://github.com/ruslo/CMake/archive/v3.2.1-p3.tar.gz</a><br>> tar zxvf v3.2.1-p3.tar.gz
<br>> cd CMake-3.2.1-p3
<br>> cmake -H. -B_builds -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON
<br>> -DCMAKE_INSTALL_PREFIX=_install -DCMAKE_USE_SYSTEM_CURL=YES
<br>>
<br>> David
<br>>
<br>>
<br>>
<br>> --
<br>> View this message in context: <a href="http://cmake.3232098.n2.nabble.com/iOS-multi-arch-library-target-and-xcodebuild-tp7590155p7590919.html" rel="nofollow" link="external" target="_blank">http://cmake.3232098.n2.nabble.com/iOS-multi-arch-library-target-and-xcodebuild-tp7590155p7590919.html</a><br>> Sent from the CMake mailing list archive at Nabble.com.
<br>>
</div></div><br>-- 
<br>Bill Hoffman
<br>Kitware, Inc.
<br>28 Corporate Drive
<br>Clifton Park, NY 12065
<br><a href="http:///user/SendEmail.jtp?type=node&node=7590921&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://www.kitware.com" rel="nofollow" link="external" target="_blank">http://www.kitware.com</a><br><a href="tel:518%20881-4905" value="+15188814905" target="_blank">518 881-4905</a> (Direct)
<br><a href="tel:518%20371-3971%20x105" value="+15183713971" target="_blank">518 371-3971 x105</a>
<br>Fax <a href="tel:%28518%29%20371-4573" value="+15183714573" target="_blank">(518) 371-4573</a>
<br>-- 
<br><br>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="nofollow" link="external" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Kitware offers various services to support the CMake community. For more information on each offering, please visit:
<br><br>CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="nofollow" link="external" target="_blank">http://cmake.org/cmake/help/support.html</a><br>CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="nofollow" link="external" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="nofollow" link="external" target="_blank">http://cmake.org/cmake/help/training.html</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/cmake" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://cmake.3232098.n2.nabble.com/iOS-multi-arch-library-target-and-xcodebuild-tp7590155p7590921.html" target="_blank" rel="nofollow" link="external">http://cmake.3232098.n2.nabble.com/iOS-multi-arch-library-target-and-xcodebuild-tp7590155p7590921.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from iOS multi-arch library target and xcodebuild, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://cmake.3232098.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://cmake.3232098.n2.nabble.com/iOS-multi-arch-library-target-and-xcodebuild-tp7590155p7590922.html">Re: iOS multi-arch library target and xcodebuild</a><br/>
Sent from the <a href="http://cmake.3232098.n2.nabble.com/">CMake mailing list archive</a> at Nabble.com.<br/>