[cmake-developers] [CMake 0015351]: Dependencies not detected when comment is in front of #include statement

Mantis Bug Tracker mantis at public.kitware.com
Wed Jan 14 11:19:03 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15351 
====================================================================== 
Reported By:                joachim
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15351
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-14 11:19 EST
Last Modified:              2015-01-14 11:19 EST
====================================================================== 
Summary:                    Dependencies not detected when comment is in front
of #include statement
Description: 
Generator: MinGW or MSYS Unix Makefiles

Consider code like this in main.cpp:
/* Comment */ #include "header.h"
#include "header2.h"

The header.h is never detected as dependency and does not appear in the
respective depend.make file:

CMakeFiles/simpleDemo.dir/main.cpp.obj: header2.h
CMakeFiles/simpleDemo.dir/main.cpp.obj: main.cpp


Additional Information: 
See attached zip for a little testproject.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-14 11:19 joachim        New Issue                                    
2015-01-14 11:19 joachim        File Added: simple.zip                       
======================================================================



More information about the cmake-developers mailing list