On Thu, Jul 16, 2009 at 4:32 PM, David Cole<[email protected]> wrote: > There is not a built-in method of identifying code like that, although that > would be a good feature request. Especially if it had a patch attached to > it... :-)
I can open a feature request :-) > You could try this at the top of your CMakeLists.txt file: > function(SUBDIRS) > message(FATAL_ERROR "error: using deprecated SUBDIRS") > endfunction() > Does CMake give you line number information if you create such a function? Yup, it does. CMake Error at CMakeLists.txt:14 (message): error: using deprecated SUBDIRS Call Stack (most recent call first): CMakeLists.txt:175 (SUBDIRS) The second one is the one you are looking for, so this should work. I just need to know how to pass Warning/Error to cdash now :) Thanks, -- Mathieu _______________________________________________ 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
