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... :-)<div><br></div><div>You could try this at the top of your CMakeLists.txt file:</div>
<div>function(SUBDIRS)</div><div> message(FATAL_ERROR "error: using deprecated SUBDIRS")</div><div>endfunction()</div><div><br></div><div>Does CMake give you line number information if you create such a function?</div>
<div><br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 10:22 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi there,<br>
<br>
I would like cmake to report any deprecated functionalities still<br>
being in use on my project (it would ideally return the filename +<br>
line number where it is being used). I was not able to find a way of<br>
doing that. Typically I would like to get rid of call to<br>
install_files() and subdirs() within an in-house project.<br>
<br>
Thanks,<br>
--<br>
Mathieu<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>