View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014547CMakeCMakepublic2013-11-06 07:402016-06-10 14:31
ReporterHajime Yoshimori 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.12 
Target VersionFixed in Version 
Summary0014547: Unix Makefile generator won't escape '#'
DescriptionThe Unix Makefile generator won't escape '#' which is appeared in names of dependent files.

If we have a header file named like "P#HEADER", CMake dependency generator will output the name without escaping.

Then it will occurs a dependency error because there is not a file named like "P".
Steps To Reproduce(This test case requires FORTRAN compiler.)

1. Extract "test-case.tar.gz"
2. cd to "test"
3. make directory "build"
4. cd to "build"
5. cmake .. -G 'Unix Makefiles'
6. make

Outputs following: (Using GNU Make)
  make[2]: *** No rule to make target `../P', needed by `CMakeFiles/A.dir/A.F.o'. Stop.

Outputs following: (Using Solaris Make)
  make: Fatal error in reader: CMakeFiles/A.dir/depend.make, line 4: Unexpected comment seen

Additional InformationIt also occurs in any place where user inputted (target names, compile options, additional library names, and so on).
TagsNo tags attached.
Attached Filesgz file icon test-case.tar.gz [^] (401 bytes) 2013-11-06 07:40

 Relationships
related to 0015285closed Cannot escape "#" in add_compile_options 
related to 0015070closedBrad King CMake doesn't escape # properly in add_compile_options with Makefile generator 

  Notes
(0038806)
Jesper Mattsson (reporter)
2015-05-27 09:07

Same problem applies to '$' as well, e.g. when a source file contains '#include "file$name.h"'.
(0042413)
Kitware Robot (administrator)
2016-06-10 14:29

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
2013-11-06 07:40 Hajime Yoshimori New Issue
2013-11-06 07:40 Hajime Yoshimori File Added: test-case.tar.gz
2014-12-04 14:44 Brad King Relationship added related to 0015285
2014-12-04 14:48 Brad King Relationship added related to 0015070
2015-05-27 09:07 Jesper Mattsson Note Added: 0038806
2016-06-10 14:29 Kitware Robot Note Added: 0042413
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team