[CMake] Remove lib prefix when generating shared lib under Windows

Michael Wild themiwi at gmail.com
Fri May 28 05:20:47 EDT 2010


On 28. May, 2010, at 11:05 , Thiébault Benoît wrote:

> Hi everyone,
> 
> I am using CMake to compile VTK using MinGW. The compilation goes with problem, but it generates libvtkXXX.dll and libvtkXXX.dll.a files.
> How can I remove this lib prefix to the generated libraries ?
> 
> Thank you for your answers
> 
> Kind regards,
> 
> Benoît

See the CMAKE_SHARED_LIBRARY_PREFIX, CMAKE_SHARED_MODULE_PREFIX and CMAKE_STATIC_LIBRARY_PREFIX variables or the OUTPUT_NAME target property.

HTH

Michael


More information about the CMake mailing list