View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013130 | CMake | CMake | public | 2012-04-13 17:04 | 2016-06-10 14:31 | ||||
Reporter | Gehua yang | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Windows | OS | Windows | OS Version | 7 | ||||
Product Version | CMake 2.8.7 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013130: Version is not set for executable or dll targets | ||||||||
Description | SET_TARGET_PROPERTIES( a PROPERTIES VERSION "1.2.3") Such sentence does not seem to have any effect with a Windows Visual Studio build. A screen shot of Visual Studio to demonstrate the version is not being set in VS. | ||||||||
Steps To Reproduce | A minimum example project was created to demo this issues. Files are enclosed. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | shot.png [^] (108,674 bytes) 2012-04-13 17:04
a.cxx [^] (77 bytes) 2012-04-13 17:04 CMakeLists.txt [^] (158 bytes) 2012-04-13 17:04 [Show Content] dumpbin-IDE.out [^] (6,125 bytes) 2012-04-16 11:56 dumpbin-nmake.out [^] (6,120 bytes) 2012-04-16 11:56 | ||||||||
Relationships | |
Relationships |
Notes | |
(0029172) Brad King (manager) 2012-04-16 09:18 |
Does it work in the NMake Makefiles generator? The mapping of this property to IDE project file attributes may be missing. |
(0029181) Gehua yang (reporter) 2012-04-16 11:57 edited on: 2012-04-16 11:57 |
Indeed, The NMake does write the image version! The two dumpbin output of the executable headers are attached. |
(0029182) Brad King (manager) 2012-04-16 13:27 |
The generated NMake makefile build rules know how to write the version because the Modules/Platform/cl.cmake file tells CMake to use the /version:... option on the link line. The equivalent of this in the IDE project files is to write a <Version>...</Version> XML element at the proper point in the project file format. The change will probably go in cmLocalVisualStudio7Generator::OutputBuildTool and cmVisualStudio10TargetGenerator::WriteLinkOptions where they write the linker tool options. |
(0042025) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-04-13 17:04 | Gehua yang | New Issue | |
2012-04-13 17:04 | Gehua yang | File Added: shot.png | |
2012-04-13 17:04 | Gehua yang | File Added: a.cxx | |
2012-04-13 17:04 | Gehua yang | File Added: CMakeLists.txt | |
2012-04-16 09:18 | Brad King | Note Added: 0029172 | |
2012-04-16 11:56 | Gehua yang | File Added: dumpbin-IDE.out | |
2012-04-16 11:56 | Gehua yang | File Added: dumpbin-nmake.out | |
2012-04-16 11:57 | Gehua yang | Note Added: 0029181 | |
2012-04-16 11:57 | Gehua yang | Note Edited: 0029181 | |
2012-04-16 13:27 | Brad King | Note Added: 0029182 | |
2012-04-16 13:27 | Brad King | Status | new => backlog |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042025 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |