Am 31.12.2014 um 11:33 schrieb Kornel Benko <kor...@lyx.org>:

> Am Mittwoch, 31. Dezember 2014 um 09:01:10, schrieb Stephan Witt 
> <st.w...@gmx.net>
>> Am 30.12.2014 um 20:29 schrieb Stephan Witt <st.w...@gmx.net>:
>>> 
>>> Am 30.12.2014 um 13:07 schrieb Kornel Benko <kor...@lyx.org>:
>>>> 
>>>> Am Montag, 29. Dezember 2014 um 13:18:46, schrieb Kornel Benko 
>>>> <kor...@lyx.org>
>>>>>> I don't know. But note, it's the target LyX failing to link, not only 
>>>>>> check_ExternalTransforms.
>>>>>> 
>>>>>> Stephan
>>>>> 
>>>>> In this case I cannot much help 
>>>>> 
>>>> 
>>>> Just to be sure, you can compile with autotools?
>>>> 
>>>> I tried to mimic the autotools use of frameworks. Could you try the patch?
>>>> 
>>>>    Kornel<framworks.patch>
>>> 
>>> I can compile it with autotools. I just found the problem, but not the 
>>> solution.
>>> The iconv.h of MacPorts redefines iconv_open et al. 
>>> 
>>> Somehow cmake is adding /opt/local/include from MacPorts
> 
> Probably here:
>       <cmake-share-dir>/Modules/Platform/Darwin.cmake

Yes. Though I do not understand the difference between 10.8.5 and 10.10.1 here.
Both have the same cmake version. Probably the included modules are different.
Perhaps because the system compilers are different. Anyway, I can live with
my solution. It's a shell script anyway I'm using for calling cmake.
The additional command line option now is part of it.

Thank you for your effort and I wish you a good start for the New Year 2015.

Stephan

> 
>>> and now the project ends up
>>> as a mixture of MacPorts and Apple system libraries.
>> 
>> This path prefix is defined in CMAKE_SYSTEM_PREFIX_PATH. The predefined 
>> value is  
>> "/usr/local;/usr;/;/opt/local;/usr/local;/Applications/Xcode.app/Contents/Develo
>> per/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr;/sw;/opt/local“
>> 
>> The solution is to shorten the list of directories to the system includes 
>> without
>> the possible OSS extensions. Calling cmake with 
>> -DCMAKE_SYSTEM_PREFIX_PATH="/usr;${SDK_ROOT}/usr“ works for me 
>> (SDK_ROOT is retrieved by xcrun --show-sdk-path).
> 
> OK, if you can live with it.
> Other solution would be to have a possibility to remove unwanted path from 
> cmake.
> 
> Like 'cmake ... -DLYX_REMOVE_PATH="/opt/local;/bla" ...',
> 
> which would remove this entries form (all?) cmake variables.
> E.g. 
>       if (LYX_REMOVE_PATH)
>               list(REMOVE_ITEM CMAKE_SYSTEM_PREFIX_PATH ${LYX_REMOVE_PATH})
>       endif()
> 
>       Kornel
> 

Reply via email to