MantisBT - CMake
View Issue Details
0013562CMakeCMakepublic2012-09-28 16:252016-06-10 14:31
Dave Abrahams 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0013562: Incorrect Makefiles generated for paths containing '#'
CMake needs to escape literal '#'s with backslashes in rules, *but not in commands*:

foo\#\#bar.o : foo\#\#bar.c
        cc -c "foo##bar.c" -o "foo##bar.o"
Try building the enclosed
No tags attached.
related to 0013467closed Kitware Robot Bug when $ is in the directory path 
has duplicate 0014745closed  Can't build a project if build directory contains '#' character, i.e. "issue#6" 
related to 0013703closed Kitware Robot Paths with | character create invalid Makefiles 
related to 0015285closed  Cannot escape "#" in add_compile_options 
related to 0015070closed Brad King CMake doesn't escape # properly in add_compile_options with Makefile generator 
gz bug.tar.gz (447) 2012-09-28 16:25
https://public.kitware.com/Bug/file/4504/bug.tar.gz
Issue History
2012-09-28 16:25Dave AbrahamsNew Issue
2012-09-28 16:25Dave AbrahamsFile Added: bug.tar.gz
2012-09-28 16:31Brad KingRelationship addedrelated to 0013467
2012-09-28 16:33Brad KingNote Added: 0031111
2012-11-19 08:02Brad KingRelationship addedrelated to 0013703
2012-11-19 08:03Brad KingStatusnew => backlog
2012-11-19 08:06Brad KingNote Added: 0031606
2014-02-10 10:12Brad KingRelationship addedhas duplicate 0014745
2014-12-04 14:44Brad KingRelationship addedrelated to 0015285
2014-12-04 14:48Brad KingRelationship addedrelated to 0015070
2016-06-10 14:28Kitware RobotNote Added: 0042126
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
(0031111)
Brad King   
2012-09-28 16:33   
Both this and issue 0013467 require some internal sweeps to distinguish various escaping contexts more cleanly.
(0031606)
Brad King   
2012-11-19 08:06   
Issues 0013467, 0013562, and 0013703 all require sweeping internal API cleanup to track escaping contexts better.
(0042126)
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.