View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014984CMakeCMakepublic2014-06-20 22:242015-01-05 08:39
ReporterCoffeeJ 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformWindowsOSWindowsXPOS VersionSP3
Product VersionCMake 3.0 
Target VersionFixed in Version 
Summary0014984: Assembler config not working (in VS2005, with partial solution,with zlib-1.2.8)
DescriptionWhen 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 [^])
Steps To ReproduceDownload zlib-1.2.8
Extract source
Start GUI-CMake
Check Assembler for x86
Configure
Generate
Open in VS2005
Build
(Linker errors here)

TagsNo tags attached.
Attached Fileszip file icon CMakeAsmVS.zip [^] (4,840 bytes) 2014-07-30 17:58

 Relationships
duplicate of 0008170closed Visual Studio 9 generator does not output Custom Build Tool command line for assembler sources 

  Notes
(0036246)
Brad King (manager)
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 (reporter)
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 (manager)
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 (manager)
2015-01-05 08:39

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2014-06-20 22:24 CoffeeJ New Issue
2014-06-24 14:55 Brad King Relationship added duplicate of 0008170
2014-06-24 14:57 Brad King Note Added: 0036246
2014-07-30 17:57 pzycho Note Added: 0036509
2014-07-30 17:58 pzycho File Added: CMakeAsmVS.zip
2014-08-22 10:42 Brad King Note Added: 0036669
2014-08-22 10:42 Brad King Status new => resolved
2014-08-22 10:42 Brad King Resolution open => duplicate
2015-01-05 08:39 Robert Maynard Note Added: 0037620
2015-01-05 08:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team