kjs/CMakeLists.txt change on KDE-4.0 branch breaks build -- apparent cmake bug?

Alexander Neundorf neundorf at kde.org
Wed Jan 16 00:43:56 GMT 2008


On Tuesday 15 January 2008, Bernhard Rosenkränzer wrote:
> On Monday 14 January 2008 16.11:33 Maksim Orlovich wrote:
> 
>  /usr/src/ark/BUILD/kdelibs/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:18:
> > > error: pcre.h: No such file or directory
> >
> > Sorry for the trouble... Does the attached help?
>
> Yes, works perfectly. Any idea why include_directories isn't working in the
> context? Really understanding this one may help prevent future similar
> bugs...

check_symbol_exists() creates a tiny new separate cmake project inside 
CMakeFiles/, which is built then in order to check for the symbol. So this is 
done in a separate cmake project, so the settings of the current project 
don't apply to that one.

If this explanation is unclear, let me know.

Alex




More information about the kde-core-devel mailing list