MantisBT - CMake
View Issue Details
0015351CMakeCMakepublic2015-01-14 11:192016-06-10 14:31
joachim 
Kitware Robot 
normalminoralways
closedmoved 
Windows
CMake 2.8.12.2 
 
0015351: Dependencies not detected when comment is in front of #include statement
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
See attached zip for a little testproject.
No tags attached.
zip simple.zip (747) 2015-01-14 11:19
https://public.kitware.com/Bug/file/5345/simple.zip
Issue History
2015-01-14 11:19joachimNew Issue
2015-01-14 11:19joachimFile Added: simple.zip
2016-06-10 14:29Kitware RobotNote Added: 0042699
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042699)
Kitware Robot   
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.