[CMake] Another attempt: CMake error reporting with absolute path?

Alexander Neundorf a.neundorf-work at gmx.net
Sun Mar 9 10:51:14 EDT 2014


On Saturday, March 08, 2014 15:28:48 J Decker wrote:
> Didn't see anyone respond to this... While building today I get this
> error...
> 
> ---- Snip ----
> Platform/Android to use this system, please send your config file to
> cmake at www.cmake.org so it can be added to cmake
> EXECUTE_PROCESS(COMMAND cmake -E remove_directory/package/src )
> CMake Error at CMakeLists.txt:86 (if):


did you try cmake --debug-output ?
This prints the full call stack for every output you see.

Alex


> 
> -----------------
> 
> This indicates that there is an error in a CMakeLists, but I have no idea
> which... especially if the build is parallel, then the previous "building"
> may not be fore this thing that caused the error.
> 
> On Tue, Mar 4, 2014 at 4:30 PM, Kevin Funk <kfunk at kde.org> wrote:
> > Hey developer list,
> > 
> > I've sent a mail about this topic half a year ago [1] but didn't get any
> > comments/suggestions. Now that 3.0 is near, I thought it's time to ask
> > this
> > again:
> > 
> > Is there any interest or are there any objections against
> > introducing error reporting using absolute paths in CMake?
> > 
> > I'm quite puzzled by output such as:
> > 
> > CMake Error at src/CMakeLists.txt:14 (add_executable):
> > 
> > It makes it hard for a user of CMake (be it a human or an external tool)
> > to
> > locate the exact file that caused the error for no apparent reason. Why
> > don't
> > we use absolute paths here?
> > 
> > Would you accept patches that change the behavior and always print
> > absolute
> > paths instead for the call stack? Objections?
> > 
> > Note that my original intent is to get a better output format to be able
> > to
> > parse the CMake error output programmatically in KDevelop.
> > 
> > [1] http://public.kitware.com/pipermail/cmake/2013-July/055361.html
> > 
> > Greets
> > 
> > --
> > Kevin Funk
> > --
> > 
> > Powered by www.kitware.com
> > 
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> > 
> > Kitware offers various services to support the CMake community. For more
> > information on each offering, please visit:
> > 
> > CMake Support: http://cmake.org/cmake/help/support.html
> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
> > CMake Training Courses: http://cmake.org/cmake/help/training.html
> > 
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> > 
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list