[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: CMake looks for an installed config script in another project's build directory
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2012-05-02 21:46:20
Message-ID: CAExHGmSxr-rxbf+_upE_WoMrDtrk1WxKGtOHnfSscjhjuycxsw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

On Wed, May 2, 2012 at 9:46 PM, Stefan Majewsky <
stefan.majewsky@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

[Attachment #5 (text/html)]

Hi,<br><br><div class="gmail_quote">On Wed, May 2, 2012 at 9:46 PM, Stefan Majewsky \
<span dir="ltr">&lt;<a href="mailto:stefan.majewsky@googlemail.com" \
target="_blank">stefan.majewsky@googlemail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi again,<br> <br>
CMake does not seem to like me today. I&#39;ve set up my<br>
KDEGamesConfig.cmake files, and tried to compile a test application<br>
against the installed library. I&#39;m attaching the CMakeLists.txt for<br>
the test application at the end of the mail for reference (after the<br>
scissor line).<br></blockquote><div><br></div><div>First of all: Whats the content of \
your installed config-files? </div><div>Second: How exactly did you call cmake in \
your application? </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 \
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I have double-checked it;<br>
the CMake run for the test application picks up the CMake config file<br>
at<br>
<br>
    /home/tmp/build/home/stefan/Code/kde/git-kdegames/libkdegames/KDEGamesConfig.cmake<br>
 <br>
instead of<br>
<br>
    /usr/share/kde4/apps/cmake/modules/KDEGamesConfig.cmake<br>
<br>
although nothing in the installed CMake files references the build<br>
directory. What the heck?<br></blockquote><div><br></div><div>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.</div> <div><br></div><div>Andreas</div></div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic