[CMake] How to set Windows DLL version information

Philip Lowman philip at yhbt.com
Fri Jan 30 02:33:55 EST 2009


On Thu, Jan 29, 2009 at 5:49 AM, Hendrik Sattler <post at hendrik-sattler.de>wrote:

> Anders Backman schrieb:
> > But I thought the whole idea was to get CMake to handle this?
> > It states in the documentation that it should be possible. No
> > exclusion about windows as far as I can see.
> >
> > I saw this thread before but as CMake claims to have this
> > functionality (multiplatform) I thought that would be a much better
> > solution.
> >
> > Comments?
>
> Read the help of the VERSION property:
> "For shared libraries and executables on Windows the VERSION attribute
> is parsed to extract a "major.minor" version number.  These numbers are
> used as the image version of the binary."
>
> That equals the VERSION tag in a .def file and is unrelated to anything
> the the rc file.
>
> Note that you could do much more things with RC files. The automatism
> would only be possible if no RC file is in the source file list.
> Additionally, there would be a need to be able to set a VERSION property
> per project additionally to setting it for a target. Only then, the
> FileVersion and ProductVersion could be automatically filled.
> This is all not present currently.


Do you know if there is a way to append this information to the DLL with the
linker (FileVersion & ProductVersion), instead of generating an RC file?

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090130/acd83ed4/attachment-0001.htm>


More information about the CMake mailing list