Better error message if one forgets to set KDEDIR variable

Alexander Neundorf neundorf at
Wed Feb 22 17:36:01 UTC 2012

On Tuesday 21 February 2012, Mario Fux wrote:
> Good morning
> Yesterday evening I had a problem which dfaure helped me to solve. I forgot
> to (re)set the KDEDIR variable and thus got errors like:
> -- ************** ecm_version() is obsolete, use
> ecm_set_version_variables() instead
> -- file RELATIVE_PATH relInstallDir /lib/i386-linux-gnu/cmake/itemmodels
> CMake Error at /usr/local/share/extra-cmake-
> modules-0.0.3/modules/ECMQtFramework.cmake:125 (file):
>   file RELATIVE_PATH called with incorrect number of arguments

Probably double quotes are missing there...

> Call Stack (most recent call first):
>   tier1/itemmodels/CMakeLists.txt:15 (include)
> Of line of the aboves is the debug line dfaure sent me as a patch. See [1]
> for the whole output of cmake.
> Here is my cmake line:
> /home/fmario/devel/KDE/cmake-build/bin/cmake ../kdelibs -
> After resetting KDEDIR to the correct directory everything worked fine but
> dfaure told me to write this to the buildsystem list and thus Alex to
> mention that there should be a better error message for this problem.


More information about the Kde-buildsystem mailing list