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

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Sat Mar 31 10:36:17 EST 2007


On Saturday 31 March 2007 12:47, 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})

I have never seen such behaviour apparently cmake "thinks" that the name of 
the library is "libstd3000c". 
Did you copy these lines from your files or is it possible that you do 
set(TARGETPART libstd3000c)
instead ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net



More information about the CMake mailing list