mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 13:30:39 +00:00
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.
This commit is contained in:
parent
cd3bd23266
commit
97c338bac9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user