[CMake] cmake 2.6.0, breakages
    Bill Hoffman 
    bill.hoffman at kitware.com
       
    Mon May 19 10:39:59 EDT 2008
    
    
  
Dmitry Marakasov wrote:
> * Bill Hoffman (bill.hoffman at kitware.com) wrote:
> 
>> That said glob recurse is a bad way to get the list of source files for 
>> many other reasons.
> What are those, btw?
If someone adds a new source file or removes one from where glob is 
finding them, you have to know to re-run cmake for this project.  If you 
explicitly list all the sources then the only way to add/remove a source 
is to edit the input to CMake.  Once you do that cmake will 
automatically re-run.  So, the best practice is to list out all the 
source files.  Using glob to get the source list is a hack as far as I 
am concerned.
-Bill
    
    
More information about the CMake
mailing list