MantisBT - CMake
View Issue Details
0011156CMakeCMakepublic2010-08-22 09:252011-05-02 14:46
Amine Khaldi 
David Cole 
normalfeaturealways
closedwon't fix 
CMake-2-8 
CMake 2.8.4 
0011156: Directory Monitoring flag to the GLOB/GLOB_RECURSE functionality
Hello,

I would like to request a way to monitor the changes that occur to GLOB/GLOB_RECURSE lists, i.e. file removals and/or additions. Right now when you add or remove a file, you need to rerun CMake in order to get the new, updated list.

The feature I request allows CMake to monitor this list, and automatically rerun CMake on the module if the list changes.

Right now, to have this functionality, we're forced to include source files one by one. Having this option will have the same result, but with smaller CMakeLists files and convenience when writing them.

Thank you.

Regards,
Amine.
No tags attached.
Issue History
2010-08-22 09:25Amine KhaldiNew Issue
2010-08-22 09:36Amine KhaldiNote Added: 0021879
2010-12-15 11:48David ColeNote Added: 0024166
2011-01-17 16:24David ColeAssigned To => David Cole
2011-01-17 16:24David ColeStatusnew => assigned
2011-01-17 16:26David ColeNote Added: 0024821
2011-01-17 16:26David ColeStatusassigned => resolved
2011-01-17 16:26David ColeFixed in Version => CMake 2.8.4
2011-01-17 16:26David ColeResolutionopen => won't fix
2011-05-02 14:46David ColeNote Added: 0026356
2011-05-02 14:46David ColeStatusresolved => closed

Notes
(0021879)
Amine Khaldi   
2010-08-22 09:36   
If it's worth mentioning, we use the MinGW Makefiles generator.
(0024166)
David Cole   
2010-12-15 11:48   
So you want CMake to run continuously in the background and monitor all changes to your source tree?

Just clarifying what your expectations are. Not sure I understand how we could possibly achieve this.

It seems unrealistic to me to introduce a cmake-daemon app that would monitor all known source trees even when cmake itself is not running anymore. How would we call you back? How would we notify you that your makefile is out of date? How would we know when you don't care about a particular source tree anymore, and we can stop monitoring it for changes?

Would you just expect us to "touch" your CMakeLists.txt file to force a cmake re-run, or would you expect more than that?

This feature request would take a major amount of work to implement.
(0024821)
David Cole   
2011-01-17 16:26   
We will not add any "directory monitoring capability" to CMake at this point in time.

I think it's a beyond-the-scope-of-CMake feature request.

CMake works on too many platforms to make a "directory listening daemon" a practical solution to this "problem" I think.

If you have a specific proposal for a code patch that implements something you think we should do in CMake, please re-open this and attach the patch for discusssion.
(0026356)
David Cole   
2011-05-02 14:46   
Closing resolved issues that have not been updated in more than 3 months.