[CMake] How to report deprecated functionalities (subdirs, install_files...)
David Cole
david.cole at kitware.com
Thu Jul 16 10:32:15 EDT 2009
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 <
mathieu.malaterre at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090716/0e794d39/attachment.htm>
More information about the CMake
mailing list