Rolf Eike Beer wrote:
> David Cole wrote:
> > On Wed, Aug 15, 2012 at 1:28 PM, Rolf Eike Beer wrote:

> > > I'll work around this for now, but I wonder if the restriction in
> > > list(REMOVE_DUPLICATES) actually makes sense. We don't give an error if
> > > there are no duplicates, why should we give an error if there are no
> > > items?
> > 
> > Is it that there are no items, or that there is not even a list with that
> > name?
> 
> In line 151 of FindX11.cmake there is a
> 
>   set(X11_LIBRARY_DIR "")
> 
> so the variable should exists.

If anybody (me included) had really read what I was writing ;)

So the real initialization of that list is in line 156, which looks like:

  set(X11_INCLUDE_DIR) # start with empty list

When writing "" to the list it works, I've now added an explicit testcase for 
that.

Eike
-- 

Attachment: signature.asc
Description: This is a digitally signed message part.

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to