[CMake] CMAKE_xxx_LIBRARY_PREFIX

Bill Hoffman bill.hoffman at kitware.com
Fri Sep 28 12:49:45 EDT 2007


Eric Noulard wrote:
> 2007/9/28, David Cole <david.cole at kitware.com>:
>   
>> Isn't the "lib" prefix simply the default you would get if you built a
>> dll (even without cmake) with MinGW gcc?
>>     
>
> That I don't really know.
>
> But I would think that you _MUST_ specify the output name
> using -o option just like you would with gcc when
> you build a shared lib.
>
> See for example for
>
> cygwin:
> http://www.cygwin.com/cygwin-ug-net/dll.html
> or
> mingw FAQ:
> http://www.mingw.org/mingwfaq.shtml#faq-msvcdll
>   
The lib prefix is so that gcc can automatically link to the library with
the usual -L -l stuff.  

-Bill

>
>   



More information about the CMake mailing list