extargear/sdk configuration problem

Andreas Pakulat apaku at gmx.de
Thu Dec 3 08:56:33 UTC 2009

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 
>   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 
> 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


Slow day.  Practice crawling.

More information about the KDevelop-devel mailing list