MantisBT - CMake
View Issue Details
0012309CMake(No Category)public2011-06-28 13:512016-06-10 14:31
Jérôme Gardou 
Kitware Robot 
CMake 2.8.12 
0012309: Support raw replacements in IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
The IMPLICIT_DEPENDS_INCLUDE_TRANSFORM is very practical, but is currently limited to macro. Perforaming quick and dirty replacements should be allowed for maximum flexibility.

I see 2 use cases for this :

1) Adding a custom command to generate the header with IMPLICIT_DEPENDS, and use OBJECT_DEPENDS to make object files dependant on it. Setting IMPLICIT_DEPENDS_INCLUDE_TRANSFORM to "header.h=" would allow to skip files on which the objects already depend on. With this technique, you can drastically reduce dependency checking performance.

Or some #define __HEADER__ "header.h" and then #include __HEADER__

Ps : I hope this patch will apply cleanly this time. If not, just let me know.
Use test project attached, try to generate (it will obviously fail) and then look at depends.internal in CMakeFiles/test.dir

Try commenting/uncommenting the two lines of test1.c to see the results.
I noticed that if result_test.h doesn't contain any #include statement, it won't be added to the dependency list. Not sure if it's a feature or a bug, but I'd consider it's the latter.
No tags attached.
patch 0001-Implements-raw-replacement-for-IMPLICIT_DEPENDS_INCL.patch (46,334) 2011-06-28 13:51
zip (578) 2011-06-28 13:51
txt patch.txt (3,211) 2011-08-28 11:08
Issue History
2011-06-28 13:51Jérôme GardouNew Issue
2011-06-28 13:51Jérôme GardouFile Added: 0001-Implements-raw-replacement-for-IMPLICIT_DEPENDS_INCL.patch
2011-06-28 13:51Jérôme GardouFile Added:
2011-07-21 13:10Jérôme GardouNote Added: 0027060
2011-08-03 16:03Brad KingNote Added: 0027166
2011-08-03 16:03Brad KingAssigned To => Brad King
2011-08-03 16:03Brad KingStatusnew => assigned
2011-08-28 11:08Jérôme GardouFile Added: patch.txt
2011-08-28 11:09Jérôme GardouNote Added: 0027278
2011-10-06 15:16Amine KhaldiNote Added: 0027544
2011-10-06 16:25Brad KingNote Added: 0027547
2012-08-13 10:36Brad KingStatusassigned => backlog
2012-08-13 10:36Brad KingNote Added: 0030478
2012-08-20 11:52David ColeAssigned ToBrad King =>
2012-08-20 11:52David ColeStatusbacklog => new
2012-08-20 11:52David ColeTarget Version => CMake 2.8.10
2012-10-18 11:16David ColeTarget VersionCMake 2.8.10 => CMake 2.8.11
2012-10-18 11:17David ColeNote Added: 0031264
2013-05-17 09:33Robert MaynardTarget VersionCMake 2.8.11 => CMake 2.8.12
2016-06-10 14:28Kitware RobotNote Added: 0041855
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Jérôme Gardou   
2011-07-21 13:10   
Hi, just pinging this bug. What do you think of it?

Brad King   
2011-08-03 16:03   
The patch appears whitespace (newline) mangled so I cannot see the net change. Can you please recreate it?
Jérôme Gardou   
2011-08-28 11:09   
OK, I'm the worst patch submitter ever.
Here is a cleaned up one.
Amine Khaldi   
2011-10-06 15:16   
We (ReactOS) use this patch in our PCH support, so we would appreciate reviewing/committing it. Thanks in advance.
Brad King   
2011-10-06 16:25   
Sorry I haven't had time to review this patch. Prior to 0012309:0027278 it was not easy to see the change. I'm still not fully clear on what it does.

Please update the patch to include documentation of the feature in the existing documentation of the target property.
Brad King   
2012-08-13 10:36   
Sending issues I'm not actively working on to the backlog to await someone with time for them.

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: [^]

It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on.
David Cole   
2012-10-18 11:17   
These bugs were deferred from target version 2.8.10 to 2.8.11 based on the responses to this email thread on the CMake developer's mailing list: [^]
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.