[CMake] Retrieving a named argument from a list

George Neill georgen at neillnet.com
Thu May 8 11:08:37 EDT 2008


Eric,

On Thu, May 8, 2008 at 4:37 AM, Eric NOULARD <eric.noulard at gmail.com> wrote:
>  Just for sake of information when I need such feature
>  in an home-brewed MACRO I do use the
>  PARSE_ARGUMENTS macro defined here:
>  http://www.cmake.org/Wiki/CMakeMacroParseArguments
>
>  which relies on LIST_CONTAINS MACRO defined in
>  http://www.cmake.org/Wiki/CMakeMacroListOperations
>
>  those "old" MACROs may be replaced by builtin LIST operation
>  as shown at the end of the Wiki page.

Well, that's exactly what I was looking for and is pretty close to
what I came up with.  I wonder if it's a possibility to have that
useful macro included in future CMake distributions?

Thanks,
George.


More information about the CMake mailing list