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. In short: yes, you have to do it manually and no, it is not required for a working DLL on windows. HS _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
