Re: [CMake] Removing the first element from a list

2007-10-11 Thread Sylvain Benner
How does one go about removing the first element of a list Have a look to the LIST command, you'll have everything you need. LIST List operations. LIST(LENGTH list output variable) LIST(GET list element index [element index ...] output variable ) LIST(APPEND

RE: [CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
-Original Message- From: Sylvain Benner [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 16:16 To: Josef Karthauser Cc: cmake@cmake.org Subject: Re: [CMake] Removing the first element from a list How does one go about removing the first element of a list Have a look to the LIST

Re: [CMake] Removing the first element from a list

2007-10-11 Thread Sylvain Benner
But this doesn't? MACRO(SHIFT RESULT LISTVAR) LIST(GET LISTVAR 1 RESULT) LIST(REMOVE_AT LISTVAR 1) ENDMACRO(SHIFT) MACRO(TEST) SET(Q ${ARGN}) WHILE(${Q}) # Get the command SHIFT(CMD Q)

RE: [CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
How does one go about removing the first element of a list Have a look to the LIST command, you'll have everything you need. Fantastic. That's not described in the book :). Joe ___ CMake mailing list CMake@cmake.org

RE: [CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
From: Sylvain Benner [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 16:40 To: Josef Karthauser Cc: cmake@cmake.org Subject: Re: [CMake] Removing the first element from a list correction: MACRO(SHIFT RESULT LISTVAR) LIST(GET ${LISTVAR} 1 ${RESULT}) LIST(REMOVE_AT