Interesting problem with FindCLucene.cmake

Ismail Dönmez ismail at pardus.org.tr
Mon Jan 14 19:21:58 CET 2008


Hi all,

FindCLucene.make has a part like this :

  FIND_PATH(CLUCENE_LIBRARY_DIR
      NAMES CLucene/clucene-config.h PATHS ${TRIAL_LIBRARY_PATHS} 
${TRIAL_INCLUDE_PATHS})

Which looks quite usual. And on my system I got clucene-config.h 
at /usr/include/CLucene/clucene-config.h. And TRIAL_INCLUDE_PATHS 
contain /usr/include directory.

So I just expect that it find clucene-config.h successfully, but it doesn't. 
Now interesting part is if I remove NAMES & PATHS it works fine. Also putting 
${TRIAL_INCLUDE_PATHS} first in the PATHS list work fine too.

I reproduced the problem with cmake 2.4.7 and 2.4.8-rc12. Any ideas whats 
going on here?

Regards,
ismail


-- 
Never learn by your mistakes, if you do you may never dare to try again.


More information about the Kde-buildsystem mailing list