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

2011-07-21 Thread Marcel Loose
Ah, sorry.

I didn't check the (almost) latest cmake. I'm currently stuck with
Ubuntu LTS 10.04, which ships cmake 2.8.0. I'll backport then.

Regards,
Marcel Loose.


On Wed, 2011-07-20 at 22:14 +0200, Alexander Neundorf wrote:
> On Wednesday 20 July 2011, Jean-Christophe Fillion-Robin wrote:
> > 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].
> 
> Yes, so it is in cmake since 2.8.3.
> 
> Alex



___
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


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

2011-07-20 Thread Alexander Neundorf
On Wednesday 20 July 2011, Jean-Christophe Fillion-Robin wrote:
> 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].

Yes, so it is in cmake since 2.8.3.

Alex
___
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


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

2011-07-20 Thread Jean-Christophe Fillion-Robin
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  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
___
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

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

2011-07-20 Thread Marcel Loose
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