[CMake] Adding Mac OS X Style Frameworks On Linux

Karol Krizka kkrizka at gmail.com
Thu Apr 8 20:58:59 EDT 2010


On Thu, Apr 8, 2010 at 1:45 PM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> On Wednesday 31 March 2010, Karol Krizka wrote:
>> Hi there,
>>
>> I am trying to use CMake to develop Apps for a jailbroken iPhone using
>> the iphonedevonlinux toolchain[1]. I got the toolchain to work and
>> build the included test app, HelloToolchain. What I am trying to do
>> next is write a CMakeLists.txt for this test App. I renamed it as
>> KKToolchain for CMake enabled testing. Anyways, if you want to see
>> what the Makefile should look like, see here[2].
>>

<snip>

>> As you can see, it correctly finds the Foundation framework in my
>> toolchain. But it complains when I try to link to it. I am assuming
>> that this is because linking to frameworks in only supported on Mac OS
>> X. Is this true? If so, is there some other way around it?
>
> Please put this in the cmake bug tracker at http://public.kitware.com/Bug/
>
> About the linking-to-frameworks... I remember there is something hardcoded
> somewhere which detects whether something is a framework and then does
> something... will have to look.
> Maybe somewhere a change from an #ifdef to something like a if (systemname
> == "Darwin") might help...
>
Thank you very much for looking into this. I have created a issue on
the bug tracker:
http://public.kitware.com/Bug/view.php?id=10526

Let me know if you need any more information from me or have me test anything.

--
Cheers,
Karol Krizka
http://www.krizka.net


More information about the CMake mailing list