[CMake] How to set Windows DLL version information

Anders Backman andersb at cs.umu.se
Thu Jan 29 03:41:42 EST 2009


so set_target_properties(target PROPERTIES VERSION 1.1 SOVERSION 1.1)

doesnt work under windows then?

/A

2008/12/26 David Cole <david.cole at kitware.com>:
> Add an *.rc file with the correct VS_VERSIONINFO resource in it as a source
> file for your dll...
> set(source_files
>   blah1.cpp
>   blah2.cpp
>   mydll.rc
>   )
> add_library(mydll SHARED ${source_files})
>
> On Fri, Dec 26, 2008 at 1:50 AM, sherman wilcox <wilcox.sherman at gmail.com>
> wrote:
>>
>> Hi, I am trying to find information about how to add version
>> information to Windows DLLs. Something like adding a resource to the
>> DLL so that specific version information (product version, name, etc.)
>> shows up when the DLL properties are displayed. Simple file-version
>> resource stuff (VS_VERSIONINFO) - I see a line in the changelog that
>> indicates CMake seems to support something like this. The line I'm
>> referring to is:  "add support for windows dll version numbers" - I'm
>> not having much luck locating any information on the topic though. Can
>> anyone nudge me in the right direction?
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
__________________________________________
Anders Backman, CTO  Algoryx Simulation AB
Uminova Science Park, Box 7973,  SE-907 19
Umeå,  Sweden
anders at algoryx.se http://www.algoryx.se
Cell: +46-70-392 64 67


More information about the CMake mailing list