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... :-)
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?


On Thu, Jul 16, 2009 at 10:22 AM, Mathieu Malaterre <
[email protected]> wrote:

> Hi there,
>
>  I would like cmake to report any deprecated functionalities still
> being in use on my project (it would ideally return the filename +
> line number where it is being used). I was not able to find a way of
> doing that. Typically I would like to get rid of call to
> install_files() and subdirs() within an in-house project.
>
> 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
>
_______________________________________________
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

Reply via email to