KDE Workspace broken due to upstream CMake changes

Rolf Eike Beer kde at opensource.sf-tec.de
Mon May 27 12:51:15 UTC 2013


Am 27.05.2013 09:13, schrieb Ben Cooksley:
> Hi all,
> 
> It seems that a recent upstream change in CMake has now broken the
> build of KDE Workspace. Can someone please fix or prod CMake upstream
> into revising their policies?
> 
> The lack of warning here concerning the change is a little irritating.
> 
> -- Looking for XkbLockModifiers in X11
> CMake Error at CMakeLists.txt:10 (ADD_EXECUTABLE):
>   Target "cmTryCompileExec744440252" links to item 
> "/usr/lib64/libXpm.so "
>   which has leading or trailing whitespace.  This is now an error 
> according
>   to policy CMP0004.
> 
> 
> CMake Error: Internal CMake error, TryCompile generation of cmake 
> failed
> -- Looking for XkbLockModifiers in X11 - not found

That's what the policies are for at all ;)

cmake --help-policy CMP0004

So, fix whatever is causing this, and in the meantime use:

cmake_policy(SET CMP0004 OLD)

Eike


More information about the Kde-buildsystem mailing list