[Cmake] How to change the default output file name for libraries in Linux

William A. Hoffman billlist at nycap.rr.com
Wed, 07 Apr 2004 14:18:59 -0400


There are some OS issues here.   For UNIX, to link with -lmylibrary, the
library must be libmylibrary.so.   For win32 dll's, the library must be 
mylibrary.dll and mylibrary.lib, but cmake should not add a lib infront.
If this is a loadable module and not really a library, then you might want to
try ADD_LIBRARY(mymodule MODULE ...)

-Bill


At 02:02 PM 4/7/2004, Raghavendra Chandrashekara wrote:
>Hi,
>
>Is there a way to change the default library name for the ADD_LIBRARY(mylibrary SHARED ${mylibrary_SOURCES}) command. I want to create a library which is called mylibrary.dll and not libmylibrary.dll
>
>Thanks,
>
>Raghavendra
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake