extra-cmake-modules breaks compilation

Alexander Neundorf neundorf at kde.org
Fri Dec 16 16:35:23 UTC 2011


On Friday 16 December 2011, David Faure wrote:
> extra-cmake-modules (master)>grep -r EXTRA_CMAKE_MODULES_MODULE_PATH .
> ./extra-cmake-modules-config.cmake.in:14:set(EXTRA_CMAKE_MODULES_MODULE_PAT
> H "${EXTRA_CMAKE_MODULES_MODULE_DIR}"
> "${EXTRA_CMAKE_MODULES_FIND_MODULE_DIR}")
> ./modules/ECMQtFramework.cmake:173: 
> "${EXTRA_CMAKE_MODULES_MODULE_PATH}/ECMConfig.cmake.in"
> ./modules/ECMQtFramework.cmake:186: 
> "${EXTRA_CMAKE_MODULES_MODULE_PATH}/ECMQtUseFile.cmake.in"
> ./modules/ECMQtFramework.cmake:214: 
> "${EXTRA_CMAKE_MODULES_MODULE_PATH}/ECMVersionHeader.h.in"
> 
> How can this work, having two items in a list and then appending a
> filename?

Not at all, fixed, sorry.

I increased the version number to 0.0.2, this should now be the version 
required for kdelibs.
If cmake then complains that it found 0.0.1, but 0.0.2 is required, you don't 
have to clear the whole build tree, doing
$ cmake -U\*extra\* .
in the build dir should do it (it Undefines the previously cached variables 
*extra*, so it has to search for them again, and should then find 0.0.2, if 
required.

Alex


More information about the Kde-buildsystem mailing list