On Tuesday 03 June 2008, Brad King wrote: > David Faure wrote: > > On Tuesday 03 June 2008, Alexander Neundorf wrote: > >> P.S. the issue here is that I try to find a file which is not a library > >> in a subdir of the lib dirs, so FIND_LIBRARY() would be a good > >> candidate, but since it automatically adds prefixes and suffixes ("lib" > >> and ".so") that doesn't work, so FIND_FILE() has to be used instead, and > >> all paths where FIND_LIBRARY() would search are added explicitely. > >> Maybe it would be easier to just use FIND_PROGRAM(automoc4) and then > >> check ../lib/automoc/ for the Automoc4Config.cmake file ? > > > > Not really, since ../lib can be ../lib64 or ../lib32, and in theory one > > doesn't have to set things up that way at all... > > Finding lib/automoc4/Automoc4Config.cmake is the exact purpose of > find_package(). The CMake 2.6 version is *much* more powerful than 2.4 > and completely solves the problem. Please make sure that > Automoc4Config.cmake is installed in a way that will work with > find_package so that when CMake 2.6 is required it doesn't have to move.
Yes, that works. But it also has to work with cmake 2.4, that's why I'm using that FIND_FILE() call. Alex _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem