diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2021-05-02 13:17:57 (GMT) |
---|---|---|
committer | Seth R Johnson <johnsonsr@ornl.gov> | 2021-05-02 13:17:57 (GMT) |
commit | d2296cdaab38255c5deb3c830fdefec878beec31 (patch) | |
tree | 38cb6642f8ab9c9174b7202eafd951cd98bd8769 /Modules | |
parent | 4f88cb1675cf2fe50459eb4cc321a0d4b36c6c33 (diff) | |
download | CMake-d2296cdaab38255c5deb3c830fdefec878beec31.zip CMake-d2296cdaab38255c5deb3c830fdefec878beec31.tar.gz CMake-d2296cdaab38255c5deb3c830fdefec878beec31.tar.bz2 |
UseSWIG: remove duplicate target includes
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/UseSWIG.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 269fa98..5c8f152 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -530,7 +530,7 @@ function(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) endif() set (property "$<TARGET_PROPERTY:${target_name},SWIG_INCLUDE_DIRECTORIES>") list (APPEND swig_source_file_flags "$<$<BOOL:${property}>:-I$<JOIN:$<TARGET_GENEX_EVAL:${target_name},${property}>,$<SEMICOLON>-I>>") - set (property "$<TARGET_PROPERTY:${target_name},INCLUDE_DIRECTORIES>") + set (property "$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:${target_name},INCLUDE_DIRECTORIES>>") get_source_file_property(use_target_include_dirs "${infile}" USE_TARGET_INCLUDE_DIRECTORIES) if (use_target_include_dirs) list (APPEND swig_source_file_flags "$<$<BOOL:${property}>:-I$<JOIN:${property},$<SEMICOLON>-I>>") |