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
-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
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)
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
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