[CMake] osx 10.6 10.5 compability issue

Michael Jackson mike.jackson at bluequartz.net
Fri Apr 29 07:35:53 EDT 2011


Try the fortran from http://r.research.att.com/tools/

Mike Jackson

On Friday, April 29, 2011, Yngve Levinsen <yngve.levinsen at gmail.com> wrote:
> So I tried, and noticed a few things:
>
> 1. When I set CMAKE_OSX_DEPLOYMENT_TARGET the setting does NOT show up
> if I do "ccmake ." in the build folder. Is this correct behaviour?
>
> 2. I use fortran as a linker language. At first I thought I set it
> wrongly since it did not have any effect and I could not see a change
> when doing "ccmake ." I then created an empty test project with c++
> and noticed that I needed the linker flag "-mmacosx-version-min=10.5".
> I added this to CMake_Fortran_LINK_FLAGS, which seems to work.
>
> I then obviously had the problem that the libgfortran.dylib was not
> created with the 10.5 compatibility, but this is the fault of macports
> and have nothing to do with cmake.
>
> Cheers,
> Yngve
>
> On 28 April 2011 18:08, Yngve Inntjore Levinsen
> <yngve.levinsen at gmail.com> wrote:
>> Hi Michael,
>>
>> I notice you know a lot about CMake and OSX, thanks once again! I'll give it
>> a try asap.
>>
>> Cheers,
>>
>> Yngve
>>
>> On Thursday 28 April 2011 06:04:18 PM Michael Jackson wrote:
>>
>>> You probably want to set the "CMAKE_OSX_DEPLOYMENT_TARGET" to 10.5 and
>>> recompile.
>>
>>> ___________________________________________________________
>>
>>> Mike Jackson www.bluequartz.net
>>
>>> Principal Software Engineer mike.jackson at bluequartz.net
>>
>>> BlueQuartz Software Dayton, Ohio
>>
>>>
>>
>>> On Apr 28, 2011, at 11:58 AM, Yngve Inntjore Levinsen wrote:
>>
>>>
>>
>>> > Dear all,
>>
>>> >
>>
>>> > I have compiled my code in OSX Snow Leopard, and then a colleague using
>>> > OSX Leopard wanted to use the bundle. However, he had some strange error
>>> > saying something like:
>>
>>> > dyld error: unknown required load command
>>
>>> >
>>
>>> > (sorry I don't have the exact error print at hand)
>>
>>> >
>>
>>> > I tried to google it and it looks like it is some kind of
>>> > incompatibility with the dylibs between the two OS versions. Is there some
>>> > flag I can set in CMakeLists.txt so that I compile a compatible version
>>> > which will work on OSX Leopard as well? Or do you have another solution?
>>
>>> >
>>
>>> > Please ask any questions if something is unclear! I apologize if this
>>> > has been answered before, but I couldn't find it.
>>
>>> >
>>
>>> > Best Regards,
>>
>>> > Yngve I. Levinsen
>>
>>> > _______________________________________________
>>
>>> > Powered by www.kitware.com
>>
>>> >
>>
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>
>>> >
>>
>>> > Please keep messages on-topic and check the CMake FAQ at:
>>> > http://www.cmake.org/Wiki/CMake_FAQ
>>
>>> >
>>
>>> > Follow this link to subscribe/unsubscribe:
>>
>>> > http://www.cmake.org/mailman/listinfo/cmake
>>
>>>
>>
>>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

-- 
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio


More information about the CMake mailing list