[Cmake] [PATCH] kdevelop generator for cmake

William A. Hoffman billlist at nycap.rr.com
Tue Sep 21 17:06:52 EDT 2004


>
>Ok, I just checked kdevelop and didn't find a dcop call to compile the  
>current project.  

So, any suggestions on how to test this stuff?  If we put it in CMake,
there is a good chance that it will be broken very quickly without any testing.
Is there anything that can be done from the command line to test the validity of
these projects?

>  
>Some questions to the code:  
>  
>maybe you noticed the exit() calls in cmLocalKdevelopGenerator.cxx. I  
>have the feeling that this is not the recommended way in the case that an  
>error is detected. What should I do instead ?  

I did not notice, but exit is not something we want in cmake.
cmSystemTools::Error("some error message")  is the correct thing
to do.  It will set the error condition and stop cmake from generating.


>  
>At the beginning of Generate() I want to check whether the projectname  
>was set using PROJECT(). What's the right way to do this ? If PROJECT()  
>wasn't called in the CMakeLists.txt, GetProjectName() returned "Project",  
>that's why the strange check. Is there a better way ?  
>  

I saw that, but I don't think you need it.  If there was no PROJECT command, then
a project command is automatically created by cmake with the name PROJECT.
So, I would just remove the call.

>Bye  
>Alex  
>  
>
>-- 
>+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
>Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl



More information about the Cmake mailing list