CHECK_LIBRARY_EXISTS error

Michael Drüing michael at drueing.de
Mon Apr 10 10:05:23 CEST 2006


Indeed, adding that include fixes it. 
Thanks!

--Michael

Index: cmake/modules/FindGettext.cmake
===================================================================
--- cmake/modules/FindGettext.cmake     (revision 528045)
+++ cmake/modules/FindGettext.cmake     (working copy)
@@ -11,6 +11,7 @@
 # embedded within kdelibs (cf. gettext.m4 from Gettext source).

 INCLUDE(CheckIncludeFiles)
+INCLUDE(CheckLibraryExists)
 include(CheckFunctionExists)

 check_include_files(libintl.h HAVE_LIBINTL_H)


> -----Original Message-----
> From: David Faure [mailto:faure at kde.org] 
> Sent: Monday, April 10, 2006 1:26 AM
> To: kde-buildsystem at kde.org
> Subject: Re: CHECK_LIBRARY_EXISTS error
> 
> On Monday 10 April 2006 01:17, Michael Drüing wrote:
> > Hi,
> >  
> > am I the only one who's getting this error lately?
> > 
> > CMake Error: Error in cmake code at
> > D:/kde4/src/kdelibs/cmake/modules/FindGettext.cmake:32:
> > Unknown CMake command "CHECK_LIBRARY_EXISTS".
> > 
> > It's been there for at least a week now, I just updated 
> CMAke and kdelibs
> > again and it's still there. Am I doing something wrong? The call to
> > CHECK_LIBRARY_EXISTS seems to work fine in all other 
> *.cmake files, so why
> > does it fail in FindGettext.cmake?
> 
> Adding
> INCLUDE(CheckLibraryExists)
> might help - the other two .cmake files using it, do that.
> No idea why it would work here without it though, might be 
> system-dependent...
> 
> -- 
> David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
> Konqueror (http://www.konqueror.org), and KOffice 
> (http://www.koffice.org).
> 
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem
> 



More information about the Kde-buildsystem mailing list