diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-12-09 19:39:23 +0100 |
---|---|---|
committer | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-12-09 19:39:28 +0100 |
commit | 9b08e3f5993eb004e3eb0d9ae8b593f553989f89 (patch) | |
tree | f9a23bfb612c565519d919f04357ae6e5e32122c /Modules/FindFreetype.cmake | |
parent | bc49d820a276243324003bc34d92a69194938adf (diff) | |
download | cmake-9b08e3f5993eb004e3eb0d9ae8b593f553989f89.tar.gz |
FindFreetype: Remove duplicates in FREETYPE_INCLUDE_DIRS
In Freetype 2.5 the paths for FREETYPE_INCLUDE_DIR_ft2build and
FREETYPE_INCLUDE_DIR_freetype2 are the same
Diffstat (limited to 'Modules/FindFreetype.cmake')
-rw-r--r-- | Modules/FindFreetype.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindFreetype.cmake b/Modules/FindFreetype.cmake index 1f12ba654c..6f03c86b74 100644 --- a/Modules/FindFreetype.cmake +++ b/Modules/FindFreetype.cmake @@ -100,6 +100,7 @@ find_library(FREETYPE_LIBRARY # set the user variables if(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) set(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}") + list(REMOVE_DUPLICATES FREETYPE_INCLUDE_DIRS) endif() set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}") |