[cmake-developers] [CMake 0014547]: Unix Makefile generator won't escape '#'
Mantis Bug Tracker
mantis at public.kitware.com
Wed Nov 6 07:40:33 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14547
======================================================================
Reported By: Hajime Yoshimori
Assigned To:
======================================================================
Project: CMake
Issue ID: 14547
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-11-06 07:40 EST
Last Modified: 2013-11-06 07:40 EST
======================================================================
Summary: Unix Makefile generator won't escape '#'
Description:
The 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 Information:
It also occurs in any place where user inputted (target names, compile options,
additional library names, and so on).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-11-06 07:40 Hajime YoshimoriNew Issue
2013-11-06 07:40 Hajime YoshimoriFile Added: test-case.tar.gz
======================================================================
More information about the cmake-developers
mailing list