Merge topic 'UseSWIG-fix14520'

20028d6 UseSWIG: Remove duplicate include dirs (#14520)
This commit is contained in:
Brad King 2013-11-26 09:36:46 -05:00 committed by CMake Topic Stage
commit 784e6e7f15
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
#message("Full path to source file: ${swig_source_file_fullname}") #message("Full path to source file: ${swig_source_file_fullname}")
#message("Full path to the output file: ${swig_generated_file_fullname}") #message("Full path to the output file: ${swig_generated_file_fullname}")
get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES) get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES)
list(REMOVE_DUPLICATES cmake_include_directories)
set(swig_include_dirs) set(swig_include_dirs)
foreach(it ${cmake_include_directories}) foreach(it ${cmake_include_directories})
set(swig_include_dirs ${swig_include_dirs} "-I${it}") set(swig_include_dirs ${swig_include_dirs} "-I${it}")