View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010848CMakeCMakepublic2010-06-17 12:302016-06-10 14:31
ReporterAndreas Johansen 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010848: Issue with space in paths used for <OBJECT> and <SOURCE> in CMAKE_ASM
DescriptionHaving applied the fix from here: http://www.cmake.org/Bug/view.php?id=8170 [^] I finally got CMake generating custom build commands for my .asm files.

However, there is an issue when the path to either the .obj file that should be generated, or the the source to use. For example;

In CMakeASM_MASMInformation.cmake the line

SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> /c /Fo <OBJECT> <SOURCE>")

Has at least two issues: <OBJECT> and <SOURCE> is expanded to the path of the files when generating the project file for VS, but when passing this path to the assembler causes an issue as the path has to be enclosed with " ". Hence, the above line should be changed to the following;

SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> /c /Fo \"<OBJECT>\" \"<SOURCE>\"")

There is also extensive use of both <OBJECT> and <SOURCE> in CMakeASMInformation.cmake that also should be fixed to be enclosed with " "
TagsNo tags attached.
Attached Files

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

  Notes
(0027630)
Alex Neundorf (developer)
2011-10-23 09:42

Does this still happen with cmake 2.8.6 ?

Alex
(0028174)
Alex Neundorf (developer)
2012-01-04 15:56

I don't feel able to fix this VisualStudio related problem, so I'm unassigning it from me.
(0028181)
Alex Neundorf (developer)
2012-01-04 16:18

I think "New" was wrong, instead the "Backlog" status should be used.
(0041711)
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.

 Issue History
Date Modified Username Field Change
2010-06-17 12:30 Andreas Johansen New Issue
2010-07-13 09:24 Bill Hoffman Status new => assigned
2010-07-13 09:24 Bill Hoffman Assigned To => Alex Neundorf
2011-03-10 15:11 Alex Neundorf Relationship added related to 0008170
2011-10-23 09:42 Alex Neundorf Note Added: 0027630
2012-01-04 15:56 Alex Neundorf Note Added: 0028174
2012-01-04 15:56 Alex Neundorf Assigned To Alex Neundorf =>
2012-01-04 15:56 Alex Neundorf Status assigned => new
2012-01-04 16:18 Alex Neundorf Note Added: 0028181
2012-01-04 16:18 Alex Neundorf Assigned To => Alex Neundorf
2012-01-04 16:18 Alex Neundorf Status new => backlog
2012-01-04 16:19 Alex Neundorf Assigned To Alex Neundorf =>
2016-06-10 14:28 Kitware Robot Note Added: 0041711
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


Copyright © 2000 - 2018 MantisBT Team