[CMake] Changing the default name "CMakeLists.txt"

Bill Hoffman bill.hoffman at kitware.com
Tue Aug 28 09:35:55 EDT 2007


Dizzy wrote:
> On Tuesday 28 August 2007 12:05:49 Martin Lütken wrote:
>   
>> If not, then does anyone have an idea how hard it would be to add a
>> possiblity (command line option I guess) like that to the cmake source code
>> ?
>>     
>
> From a simple grep in the cmake CVS sources I think that to add such an option 
> first would require to have a unified place with the "CMakeLists.txt" string 
> value because currently there are about 15 different places in code where the 
> string is hardcoded, about 30 places where it appears in messages generated 
> from the code and A LOT of code comments and cmake module comments where it's 
> used (tho the comments can be left in place since they still make sense 
> talking about a CMakeLists.txt file even if that is configurable).
>
> All in all I don't think it's very hard to do it, would result in a better 
> cmake code organization too (not having scattered "CMakeLists.txt" magic 
> value all over the code).
>
>   
It would also have to be propagated into the rules that re-run cmake 
when things change.  I have yet
to see a good reason to do this.

-Bill



More information about the CMake mailing list