summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-08 11:09:18 -0400
committerBrad King <brad.king@kitware.com>2018-10-08 11:09:18 -0400
commitc780f5eea70f9b609e17adf5f192e024d1dd46b5 (patch)
tree6ddc0ba3107cd2776d8182ae6132088991b8d226 /Modules
parentd92737821f815b98f6bc29ff9a18928eddc0e903 (diff)
parentecd0fec40bca23609ae483641fa2fc59f62a4053 (diff)
downloadcmake-c780f5eea70f9b609e17adf5f192e024d1dd46b5.tar.gz
Merge branch 'UseSWIG-php-regression' into release-3.13
Merge-request: !2448
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake4
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