MantisBT - CMake
View Issue Details
0010848CMakeCMakepublic2010-06-17 12:302016-06-10 14:31
Andreas Johansen 
Kitware Robot 
normalminoralways
closedmoved 
CMake-2-8 
 
0010848: Issue with space in paths used for <OBJECT> and <SOURCE> in CMAKE_ASM
Having 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 " "
No tags attached.
related to 0008170closed  Visual Studio 9 generator does not output Custom Build Tool command line for assembler sources 
Issue History
2010-06-17 12:30Andreas JohansenNew Issue
2010-07-13 09:24Bill HoffmanStatusnew => assigned
2010-07-13 09:24Bill HoffmanAssigned To => Alex Neundorf
2011-03-10 15:11Alex NeundorfRelationship addedrelated to 0008170
2011-10-23 09:42Alex NeundorfNote Added: 0027630
2012-01-04 15:56Alex NeundorfNote Added: 0028174
2012-01-04 15:56Alex NeundorfAssigned ToAlex Neundorf =>
2012-01-04 15:56Alex NeundorfStatusassigned => new
2012-01-04 16:18Alex NeundorfNote Added: 0028181
2012-01-04 16:18Alex NeundorfAssigned To => Alex Neundorf
2012-01-04 16:18Alex NeundorfStatusnew => backlog
2012-01-04 16:19Alex NeundorfAssigned ToAlex Neundorf =>
2016-06-10 14:28Kitware RobotNote Added: 0041711
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0027630)
Alex Neundorf   
2011-10-23 09:42   
Does this still happen with cmake 2.8.6 ?

Alex
(0028174)
Alex Neundorf   
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   
2012-01-04 16:18   
I think "New" was wrong, instead the "Backlog" status should be used.
(0041711)
Kitware Robot   
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.