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

List:       kdevelop-devel
Subject:    Re: extargear/sdk configuration problem
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2009-12-03 8:56:33
Message-ID: 20091203085633.GB3426 () trinity ! apaku ! dnsalias ! org
[Download RAW message or body]

On 03.12.09 09:27:29, Andras Mantia wrote:
> Hi,
> 
>  if you try to build extragear/sdk as a module and you don't have 
> kdevplatform built and installed yet, cmake configuration bails out with 
> this error:
> Make Warning at kdevelop/cmake/modules/FindKDevPlatform.cmake:41 
> (find_package):
>   Could not find a configuration file for package KDevPlatform.
> 
>   Set KDevPlatform_DIR to the directory containing a CMake configuration 
> file
>   for KDevPlatform.  The file will have one of the following names:
> 
>     KDevPlatformConfig.cmake
>     kdevplatform-config.cmake
> 
> Call Stack (most recent call first):
>   kdevelop/CMakeLists.txt:19 (find_package)
> 
> 
> CMake Error at 
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:57 
> (MESSAGE):
>   Could NOT find KDevPlatform (missing: KDevPlatform_CONFIG)
> Call Stack (most recent call first):
>   kdevelop/cmake/modules/FindKDevPlatform.cmake:45 
> (find_package_handle_standard_args)
>   kdevelop/CMakeLists.txt:19 (find_package)
> 
> 
> I tried a 
> SET(KDEVPLATFORM_DIR ${CMAKE_BUILD_DIR}/kdevplaform)
> in the toplevel CMakeList.txt, but didn't help. Tried to set 
> CMAKE_MODULE_PATH to the same dir, again, without sucess

Hmm, we'd need to make FindKDevPlatform.cmake smart enough to know when
its built from inside extragear/sdk (a project() call in the
sdk/CMakeLists.txt should be enough) and in that case don't call the
find_package() stuff, but instead just set the variables as
kdevplatform/CMakeLists.txt does it. I'll try that tonight and will also
update the copy in kdelibs so we're not hitting this again in the
future.

Andreas

-- 
Slow day.  Practice crawling.

-- 
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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