[Cmake] [PATCH] kdevelop generator for cmake

Alexander Neundorf a.neundorf-work at gmx.net
Tue Sep 21 17:14:13 EDT 2004


Hi William, 
 
> 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? 
 
I'll ask on kdevelop-devel. 
  
> >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. 
 
Ok.  
 
> >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. 
 
Well, I need the PROJECT_SOURCE_DIR for the location of 
the .kdevelop.filelist file. 
 
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