Merge topic 'FindX11-duplicate-includes-13316'
dd784dd
FindX11: avoid calling list(REMOVE_DUPLICATES) on an empty list97c338b
FindX11: remove duplicates from X11 include path list (#13316)
This commit is contained in:
commit
d4be75be12
|
@ -324,6 +324,11 @@ if (UNIX)
|
||||||
set(X11_SM_FOUND TRUE)
|
set(X11_SM_FOUND TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# 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
|
# Deprecated variable for backwards compatibility with CMake 1.4
|
||||||
if (X11_X11_INCLUDE_PATH AND X11_LIBRARIES)
|
if (X11_X11_INCLUDE_PATH AND X11_LIBRARIES)
|
||||||
|
|
Loading…
Reference in New Issue