[CMake] Issue with list( REMOVE_DUPLICATES )
David Cole
david.cole at kitware.com
Thu Jan 22 06:39:11 EST 2009
Use "list_var" instead of "${list_var}"
${list_var} will only work if it happens to evaluate to the name of a list
variable....
HTH,
David
On Thu, Jan 22, 2009 at 1:26 AM, Robert Dailey <rcdailey at gmail.com> wrote:
> Hi,
>
> I'm running the following command in CMake 2.6:
>
>
> list( REMOVE_DUPLICATES ${list_var} )
>
> When I compile this script, I get the following error:
>
> CMake Error at CMakeLists.txt:103 (list):
>
> list sub-command REMOVE_DUPLICATES requires list to be present.
>
>
> I'm not sure why this is happening. I'm using ${list_var} in list( APPEND )
> and it works just fine. I checked the value of {list_var} and it has a valid
> string in there representing the variable name of a list.
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090122/fc4e09f7/attachment.htm>
More information about the CMake
mailing list