Hi,

On Wed, May 2, 2012 at 9:46 PM, Stefan Majewsky <
stefan.majew...@googlemail.com> wrote:

> Hi again,
>
> CMake does not seem to like me today. I've set up my
> KDEGamesConfig.cmake files, and tried to compile a test application
> against the installed library. I'm attaching the CMakeLists.txt for
> the test application at the end of the mail for reference (after the
> scissor line).
>

First of all: Whats the content of your installed config-files?
Second: How exactly did you call cmake in your application?


> I have double-checked it;
> the CMake run for the test application picks up the CMake config file
> at
>
>
>  
> /home/tmp/build/home/stefan/Code/kde/git-kdegames/libkdegames/KDEGamesConfig.cmake
>
> instead of
>
>    /usr/share/kde4/apps/cmake/modules/KDEGamesConfig.cmake
>
> although nothing in the installed CMake files references the build
> directory. What the heck?
>

This suggests you called cmake with the builddir in CMAKE_PREFIX_PATH or
one of the other variables that cmake looks into when searching for config
files. See man cmake, the section about find_package contains a list of
paths that are being searched and the first one having a config-file will
be used.

Andreas
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to