[CMake] How to rename the resulting Makefile.

william.crocker at analog.com william.crocker at analog.com
Tue Oct 12 11:52:31 EDT 2010


>>>> [ elided ]
>>>>
>>>> So, is there a command I can place in my CMakeLists.txt files
>>>> which will cause them to produce a file named xyz.make (let's say)
>>>> instead of Makefile.
>>>>
>>>> [ elided ]
> 
>> I still think Qt/qmake was right in providing the ability to change
>> the name of the Makefile. Before I discovered that, I could not use
>> the qmake system.
> 
> I agree that it would be a good feature to be able to change the name
> of generated
> makefiles, but if you dig the ML you'll see that **after discussion**
> there is not
> so many **useful** cases to do that.
> 
> But you home-brewed Makefile is not cross-platform which is one of the
> primary target for using CMake :-]
>

I will use cmake to build the app on my various platforms (Linux/Windows...).
Most of my convenience targets are only used during development (Linux)
so it is typically okay that they are not cross platform.

> [ elided ]
> 
> file(xxxx ...) commands
>

Yes I see.
But if I had the ability to change the name of the Makefile I could
start using cmake right now. If I have to rewrite my entire makefile
the cmake way (all or nothing) it will take weeks.

Anyway. I understand. We can leave it at that.

Thanks for all the help.

Bill



More information about the CMake mailing list