[CMake] Why is macro PARSE_ARGUMENTS() not part of standard CMake modules?

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Jul 20 12:19:42 EDT 2011


Hi Marcel,

Before CMAKE_PARSE_ARGUMENT [1] was integrated (11 months ago by Alex
Neundorf), within CTK, we created a macro named ctkMacroParseArgument based
on [2].

We will need to re-evaluate which minimum version of CMake we want to depend
on and if possible, use the one provided by CMake.

If you want to re-use the macro available in CTK, you could copy it and
adapt it to use CMAKE_PARSE_ARGUMENT.

Thanks
Jc

[1]
http://cmake.org/gitweb?p=cmake.git;a=blob_plain;f=Modules/CMakeParseArguments.cmake;hb=HEAD
[2] http://www.cmake.org/Wiki/CMakeMacroParseArguments

On Wed, Jul 20, 2011 at 12:07 PM, Marcel Loose <loose at astron.nl> wrote:

> Hi all,
>
> As a spin-off of my question earlier today on INSTALL(CODE...) --
> http://www.mail-archive.com/cmake@cmake.org/msg37292.html --
> I followed the link
>
> https://github.com/commontk/CTK/blob/master/CMake/ctkMacroCompilePythonScript.cmake
> that was supplied in the first reply and finally arrived at
> http://www.cmake.org/Wiki/CMakeMacroParseArguments which sounds like a
> very useful macro to have.
>
> I was wondering why this macro is only implemented in CPack.cmake as
> cpack_parse_arguments(). Is there a reason for not having it as standard
> CMake module?
>
> Best regards,
> Marcel Loose.
>
>
> --
> Marcel Loose
> Senior Software Engineer, Computing Group R&D, Astron, the Netherlands
>
> _______________________________________________
> 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
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110720/4e9ee166/attachment.htm>


More information about the CMake mailing list