mirror of
https://github.com/reactos/CMake.git
synced 2025-02-16 09:37:36 +00:00
UseSWIG: Remove duplicate include dirs (#14520)
Shorten the swig command line.
This commit is contained in:
parent
26ccafea46
commit
20028d600f
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user