[CMake] problem with EXPORT_LIBRARY_DEPENDENCIES(... APPEND) ?

Alexander Neundorf a.neundorf-work at gmx.net
Thu Mar 16 14:40:04 EST 2006


> --- Ursprüngliche Nachricht --- 
> Von: Brad King <brad.king at kitware.com> 
> An: Alexander Neundorf <a.neundorf-work at gmx.net> 
> Kopie: cmake at cmake.org 
> Betreff: Re: [CMake] problem with EXPORT_LIBRARY_DEPENDENCIES(... 
APPEND) 
> ? 
> Datum: Thu, 16 Mar 2006 14:17:01 -0500 
>  
> Brad King wrote: 
> > Alexander Neundorf wrote: 
> >  
> >>> Von: Brad King <brad.king at kitware.com>  
> >>> Since the problem occurs with either command's APPEND option I 
wonder  
> >>> if  there is a problem with opening files in append mode.  What  
> >>> exact  compiler did you use to build this CMake?  
> >>   
> >> FILE(WRITE ...) FILE(APPEND ...) works.   
> >> It's a slackware 9.1 with gcc 3.3.6 and kernel 2.4.22 (I know it's  
> >> ancient). I'll have a look at the code.  
> >  
> > I think I found the problem.  The append mode of  
> > EXPORT_LIBRARY_DEPENDENCIES leaks the ofstream object so the file is 
not 
> > closed properly.  I don't know why it works for me.  I'll check in a 
fix 
> > soon. 
>  
> Okay, try it now. 
 
FILE(WRITE ...) 
FILE(APPEND ...) 
EXPORT_...(...) 
 
works now. 
 
 
EXPORT_...(...) 
FILE(APPEND ...) 
 
still doesn't work. 
 
Bye 
Alex 
 
 

-- 
"Feel free" mit GMX FreeMail!
Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net


More information about the CMake mailing list