summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-08-13 17:39:30 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-08-14 19:13:44 (GMT)
commit97c338bac910d087eff9b160e3b68f2eeee482a5 (patch)
treee07197e7e58c95eb6f892fe5dc7c7e0e9f8ddc04 /Modules
parentcd3bd23266a4a6c00595134a17a8bdaea9e28af5 (diff)
downloadCMake-97c338bac910d087eff9b160e3b68f2eeee482a5.zip
CMake-97c338bac910d087eff9b160e3b68f2eeee482a5.tar.gz
CMake-97c338bac910d087eff9b160e3b68f2eeee482a5.tar.bz2
FindX11: remove duplicates from X11 include path list (#13316)
Most if not all X11 includes are typically in the same directory, so this usually returns a huge list with only very few different entries.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindX11.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake
index 0b63bc9..01ba478 100644
--- a/Modules/FindX11.cmake
+++ b/Modules/FindX11.cmake
@@ -324,6 +324,9 @@ if (UNIX)
set(X11_SM_FOUND TRUE)
endif()
+ # Most of the X11 headers will be in the same directories, avoid
+ # creating a huge list of duplicates.
+ list(REMOVE_DUPLICATES X11_INCLUDE_DIR)
# Deprecated variable for backwards compatibility with CMake 1.4
if (X11_X11_INCLUDE_PATH AND X11_LIBRARIES)