MantisBT - CMake
View Issue Details
0014984CMakeCMakepublic2014-06-20 22:242015-01-05 08:39
CoffeeJ 
 
normalminoralways
closedduplicate 
WindowsWindowsXPSP3
CMake 3.0 
 
0014984: Assembler config not working (in VS2005, with partial solution,with zlib-1.2.8)
When useing CMAKE_ASM_* the asm files get included in teh project but the rule file is not loaded. This leads to a "cutom build rule" which does nothing.
And therefor to link problems.

It can be resolved by adding
"<ToolFiles><DefaultToolFile FileName="masm.rules"/></ToolFiles>" to the
.vcproj-file.

BTW: the parameters set for the assmbler (masm in this case) too don't work.
Tested/Found on zlib library (http://zlib.net/zlib-1.2.8.tar.gz [^])
Download zlib-1.2.8
Extract source
Start GUI-CMake
Check Assembler for x86
Configure
Generate
Open in VS2005
Build
(Linker errors here)

No tags attached.
duplicate of 0008170closed  Visual Studio 9 generator does not output Custom Build Tool command line for assembler sources 
zip CMakeAsmVS.zip (4,840) 2014-07-30 17:58
https://public.kitware.com/Bug/file/5204/CMakeAsmVS.zip
Issue History
2014-06-20 22:24CoffeeJNew Issue
2014-06-24 14:55Brad KingRelationship addedduplicate of 0008170
2014-06-24 14:57Brad KingNote Added: 0036246
2014-07-30 17:57pzychoNote Added: 0036509
2014-07-30 17:58pzychoFile Added: CMakeAsmVS.zip
2014-08-22 10:42Brad KingNote Added: 0036669
2014-08-22 10:42Brad KingStatusnew => resolved
2014-08-22 10:42Brad KingResolutionopen => duplicate
2015-01-05 08:39Robert MaynardNote Added: 0037620
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0036246)
Brad King   
2014-06-24 14:57   
I think this is the same problem reported in 0008170, but the solution proposed here looks much simpler.

Where in the .vcproj file does the ToolFiles element go? Can you attach an example?
(0036509)
pzycho   
2014-07-30 17:57   
I want this resolved for all other versions of VS as well and have attached examples for VS2008 and VS2010/12/13. One project file with and one without the ASM rules enabled for easy diffing.

I think VS2005 should be equal to the VS2008 version, but don't have that old version anymore.

The VS2010 version is exactly the same for VS2012 and VS2013 as well.

If you want to test this in VS yourself, just create a new empty project. Right click the project and depending on the VS version use either 'Custom Build rules...' or 'Build Customizations...' and enable the MASM rules.
(0036669)
Brad King   
2014-08-22 10:42   
This has now been implemented as linked in 0008170:0036668. I'm resolving this issue as a duplicate of 0008170, so further discussion can go there.
(0037620)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months