summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorJulien Schueller <schueller@phimeca.com>2013-11-23 07:57:04 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-25 13:33:30 (GMT)
commit20028d600f643f06a2f4d8a429a02ce770e0c8a4 (patch)
tree2007164fb2688014823b964f4c43c28bd0d13d75 /Modules/UseSWIG.cmake
parent26ccafea462604180cc900d92e087eff4c0bfe85 (diff)
downloadCMake-20028d600f643f06a2f4d8a429a02ce770e0c8a4.zip
CMake-20028d600f643f06a2f4d8a429a02ce770e0c8a4.tar.gz
CMake-20028d600f643f06a2f4d8a429a02ce770e0c8a4.tar.bz2
UseSWIG: Remove duplicate include dirs (#14520)
Shorten the swig command line.
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r--Modules/UseSWIG.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 00f3e21..f4aeebc 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}")