diff options
author | Brad King <brad.king@kitware.com> | 2018-10-08 15:10:37 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-10-08 11:10:59 -0400 |
commit | fcb47f43310e68b699f7accb4858ae9ce7053ecf (patch) | |
tree | a1e265073e4a4fc879ccbcaff8e52b138fe26775 /Modules/UseSWIG.cmake | |
parent | 20e14baae79b5fd1f75aecbb167a3642f2c532d8 (diff) | |
parent | ecd0fec40bca23609ae483641fa2fc59f62a4053 (diff) | |
download | cmake-fcb47f43310e68b699f7accb4858ae9ce7053ecf.tar.gz |
Merge topic 'UseSWIG-php-regression'
ecd0fec40b UseSWIG: fix regression for PHP language
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2448
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index dc4febc64f..f20a53b798 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -500,6 +500,10 @@ function(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) get_property (compile_options SOURCE "${infile}" PROPERTY GENERATED_COMPILE_OPTIONS) set_property (SOURCE "${swig_generated_file_fullname}" PROPERTY COMPILE_OPTIONS $<TARGET_GENEX_EVAL:${target_name},$<TARGET_PROPERTY:${target_name},SWIG_GENERATED_COMPILE_OPTIONS>> ${compile_options}) + if (SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG MATCHES "php") + set_property (SOURCE "${swig_generated_file_fullname}" APPEND PROPERTY INCLUDE_DIRECTORIES "${outdir}") + endif() + set(${outfiles} "${swig_generated_file_fullname}" ${swig_extra_generated_files} PARENT_SCOPE) # legacy support |