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 <[email protected]> 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
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake