Re: [CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-22 Thread Robert Dailey
I had come to find that the variable existed (the one pointed to by list_var), however it was indeed empty. I do appreciate you taking your free time to help me out David. On Thu, Jan 22, 2009 at 1:13 PM, David Cole wrote: > Print it out to make sure it is what you think it is. Perhaps it's emp

Re: [CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-22 Thread David Cole
Print it out to make sure it is what you think it is. Perhaps it's empty and REMOVE_DUPLICATES doesn't like empty lists? If so, file a bug: REMOVE_DUPLICATES should probably just be a silent no-op if the list is empty. Or is it a variable that is not defined? What does: MESSAGE(STATUS "list_var='$

Re: [CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-22 Thread Robert Dailey
On Thu, Jan 22, 2009 at 5:39 AM, David Cole wrote: > Use "list_var" instead of "${list_var}" > > ${list_var} will only work if it happens to evaluate to the name of a list > variable That was the entire point :) list_var isn't a list, it's a variable pointing to a list. Apologies if I did

Re: [CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-22 Thread David Cole
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 wrote: > Hi, > > I'm running the following command in CMake 2.6: > > > list( REMOVE_DUPLICATES ${list_

[CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-21 Thread Robert Dailey
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.