[CMake] Why the target is named to "liblib" instead to "lib"? (Linux)

Filipe Sousa natros at gmail.com
Sat Mar 31 06:27:52 EST 2007


Manfred Rebentisch wrote:
> Hello,
> I am new to this list, so I beg your pardon, if the question is a recurrence.
> 
> I use cmake version 2.4-patch 3 on Suse 10.1 .
> 
> I want to generate a library with the name "libstd3000c.so". So I define:
> 
> ==== CMakeLists.txt BEGIN
> project(Std3000C)
> set(USEAPR 1)
> set(TARGETPART std3000c)
> set(SOURCES  cparray.c cpmap.c         cptplbuf.c          cpavl.c )
> # and much more sources...
> ADD_LIBRARY(${TARGETPART} SHARED ${SOURCES})
> TARGET_LINK_LIBRARIES(${TARGETPART} expat )
> if(USEAPR)
>     ADD_DEFINITIONS(-DUSE_APR )
>     FIND_LIBRARY(APRUTIL_LIB NAMES aprutil-1 aprutil-0 )
>     FIND_LIBRARY(APR_LIB NAMES apr-1 apr-0 )
>     FIND_PATH(APR_INCL NAMES apr.h apr_lib.h
>             PATH_SUFFIXES apache2 apr-0 apr-1 apr-1.0 )
>     TARGET_LINK_LIBRARIES(${TARGETPART}  ${APR_LIB} ${APRUTIL_LIB})
>     INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${APR_INCL} )
> endif (USEAPR)
> ==== CMakeLists.txt END
> The orignal file contains more lines, but this is the important.
> 
> After "cmake ." and make there is a file named "liblibstd3000c.so". 

Please, try a more recent version.

--
Filipe Sousa

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070331/b6a26837/signature.pgp


More information about the CMake mailing list