Confusing bail-out messages
Adriaan de Groot
groot at kde.org
Sun Oct 15 10:49:52 CEST 2006
As usual, I fired up CMake without setting up my build environment properly,
and got this:
CMake Error: Error in cmake code at
/usr/local/KDE4/share/apps/cmake/modules/FindQt4.cmake:1048:
MESSAGE Qt qmake not found!
Current CMake
stack: /home/adridg/KDE/kdepim/CMakeLists.txt;/usr/local/share/CMake/Modules/CMakeCInformation.cmake;/usr/local/share/CMake/Modules/CMakeCXXInformation.cmake;/usr/local/share/CMake/Modules/FindKDE4.cmake;/usr/local/KDE4/share/apps/cmake/modules/FindKDE4Internal.cmake;/usr/local/KDE4/share/apps/cmake/modules/FindQt4.cmake
For once, though, I actually read the messages, and it strikes me that they
are somewhat confusing when taken at face value. For one thing, there is no
error in the cmake code: it's a error during configuration because the cmake
code has *detected* an error. It might be useful to make the bail-out message
a little more verbose with some MESSAGE( STATUS ... ) strings (I'll try to
remember to do that on monday to avoid the wrath of everyone).
The other thing is the stack: it'd be useful to include line numbers in the
trace and/or format it like the gcc "error in file F, included from F' ..."
error listing.
--
KDE Quality Team http://www.englishbreakfastnetwork.org/
GPG: FEA2 A3FE http://people.fruitsalad.org/adridg/
More information about the Kde-buildsystem
mailing list