[CMake] osx-10.5 ranlib vs ranlib -c vs libtool
Bill Hoffman
bill.hoffman at kitware.com
Sat Jun 6 09:07:01 EDT 2009
Bob Tanner wrote:
> On 2009-06-05 17:37:11 -0500, Bob Tanner <tanner at real-time.com> said:
>
>> First question, how to I add "-c" to ranlib evocation?
>
> Sorry for the follow-up to my post, but here is the work-around I used.
>
> IF (UNIX)
> MESSAGE (STATUS "Unix")
> IF (APPLE)
> SET(CMAKE_C_CREATE_STATIC_LIBRARY
> "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
> "<CMAKE_RANLIB> -c <TARGET> "
> )
> ENDIF (APPLE)
> ENDIF (UNIX)
I am confused about why you have to do this. What is an internal
library? We create and use static libraries all the time on Mac OSX
and never have this problem???
-Bill
More information about the CMake
mailing list