diff options
author | Brad King <brad.king@kitware.com> | 2013-11-26 14:36:46 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-11-26 14:36:46 (GMT) |
commit | 784e6e7f15fa9b655d2b51ee29756f0d777cb071 (patch) | |
tree | 291303d5afa329232103178dbb5e88cb6027b406 /Modules/UseSWIG.cmake | |
parent | 0ccc53573419132434528ca287a6bc03e2632768 (diff) | |
parent | 20028d600f643f06a2f4d8a429a02ce770e0c8a4 (diff) | |
download | CMake-784e6e7f15fa9b655d2b51ee29756f0d777cb071.zip CMake-784e6e7f15fa9b655d2b51ee29756f0d777cb071.tar.gz CMake-784e6e7f15fa9b655d2b51ee29756f0d777cb071.tar.bz2 |
Merge topic 'UseSWIG-fix14520'
20028d6 UseSWIG: Remove duplicate include dirs (#14520)
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index dbacf6c..28d5ff0 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -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 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}") |