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

Michael Wild themiwi at gmail.com
Fri May 28 06:58:20 EDT 2010


The variables are not cached. Not sure whether you can override them in the cache. You certainly can do so in the CMakeLists.txt files

Michael


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

> Thank you for the advice, but these variables do not appear in my CMake configuration. Should I add them manually in the CmakeCache.txt file ?
> Sorry if this is a newbie question, I'm not very familiar yet with cmake
> 
> Benoît
> 
> Le 28 mai 2010 à 11:20, Michael Wild a écrit :
> 
>> 
>> 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
>> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list