From 20028d600f643f06a2f4d8a429a02ce770e0c8a4 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Sat, 23 Nov 2013 08:57:04 +0100 Subject: [PATCH] UseSWIG: Remove duplicate include dirs (#14520) Shorten the swig command line. --- Modules/UseSWIG.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 00f3e21f6..f4aeebce2 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -159,6 +159,7 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) #message("Full path to source file: ${swig_source_file_fullname}") #message("Full path to the output file: ${swig_generated_file_fullname}") get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES) + list(REMOVE_DUPLICATES cmake_include_directories) set(swig_include_dirs) foreach(it ${cmake_include_directories}) set(swig_include_dirs ${swig_include_dirs} "-I${it}")