Re: [CMake] how to ignore errors/keep going using cmake
This depends on the projects use of message in the CMakeLists.txt files. If a project call to message uses FATAL_ERROR it stops immediately and returns an error. If they use SEND_ERROR it continues processing and returns an error when it is done configuring. In either case, it will not generate new makefiles. Since this distinction is made at the project's discretion based on the particular error that is occurring, we do not provide a continue on error option. We already automatically continue on error if SEND_ERROR is used. But if there's a FATAL_ERROR, you must correct it and then re-configure to get past that. HTH, David On Wed, Jan 5, 2011 at 7:43 PM, Ekaterina Sanina ekaterina.san...@gmail.com wrote: Hi, I was wondering if it's possible to ignore errors and continue the build with cmake (for example if one wants to find out how many failures the project has). Is there option similar to -i ( --ignore-errors) or -k (--keep-going) option of GNU make? I scanned the documentation and can't find any relevant option. -i option doing something else (runs in wizard mode) and -k option is ignored. You help is greatly appreciated. Thank you so much! Ekaterina. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] how to ignore errors/keep going using cmake
Hi, I was wondering if it's possible to ignore errors and continue the build with cmake (for example if one wants to find out how many failures the project has). Is there option similar to -i ( --ignore-errors) or -k (--keep-going) option of GNU make? I scanned the documentation and can't find any relevant option. -i option doing something else (runs in wizard mode) and -k option is ignored. You help is greatly appreciated. Thank you so much! Ekaterina. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] how to ignore errors/keep going using cmake
On 2011-01-05 16:43-0800 Ekaterina Sanina wrote: Hi, I was wondering if it's possible to ignore errors and continue the build with cmake (for example if one wants to find out how many failures the project has). Is there option similar to -i ( --ignore-errors) or -k (--keep-going) option of GNU make? I scanned the documentation and can't find any relevant option. -i option doing something else (runs in wizard mode) and -k option is ignored. You help is greatly appreciated. I am not sure, but you may be confusing cmake with make. At least for the default Unix Makefiles generator on Linux systems, cmake configures a bunch of (GNU) Makefiles. You then run those with the ordinary make command where you have access to the ordinary make -k option. My experience is cmake often tries to continue after an error occurs, but almost always it is that first error (say caused by some screwup in a CMakeLists.txt file) that is the most important one so ordinarily I ignored the attempt to continue if it occurs. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake