[CMake] Xcode C++ linking
Michael Wild
themiwi at gmail.com
Wed Mar 2 14:39:56 EST 2011
On 02.03.2011, at 18:20, Robert Bielik <robert.bielik at xponaut.se> wrote:
> Michael Jackson skrev 2011-03-02 18:14:
>> In case you didn't happen to find this article:
>>
>>
>> http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/LibCPPDeployment.html
>
> Thanks! Have a vague memory of having seen that page before. But it doesn't contain the info I was after, remember, this is a CMake list... ;)
>
> All the best,
> /Rob
Then you haven't read it.., It contains exactly that information. You need to set the LINKER_LANGUAGE (or similar, can't remember) property to C and then link against stdc++-static (MUST be the last library!). IMHO you don't need the -shared-libgcc flag, as it should be the default.
HTH
Michael
More information about the CMake
mailing list