FindX11: avoid calling list(REMOVE_DUPLICATES) on an empty list

This commit is contained in:
Rolf Eike Beer 2012-08-15 19:28:50 +02:00
parent 97c338bac9
commit dd784dde72
1 changed files with 3 additions and 1 deletions

View File

@ -326,7 +326,9 @@ if (UNIX)
# Most of the X11 headers will be in the same directories, avoid
# creating a huge list of duplicates.
if (X11_INCLUDE_DIR)
list(REMOVE_DUPLICATES X11_INCLUDE_DIR)
endif ()
# Deprecated variable for backwards compatibility with CMake 1.4
if (X11_X11_INCLUDE_PATH AND X11_LIBRARIES)