summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-06-26 12:40:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-06-26 12:40:11 (GMT)
commit3860a2dcd68d52a248e2befb09945aff3f8fa9f2 (patch)
tree3a0e6e7724cc4e31114bbb14e6353c58d79aff47 /Modules/UseSWIG.cmake
parent15097cf35f660ed3865f60e70201e5d902b46b2d (diff)
downloadCMake-3860a2dcd68d52a248e2befb09945aff3f8fa9f2.zip
CMake-3860a2dcd68d52a248e2befb09945aff3f8fa9f2.tar.gz
CMake-3860a2dcd68d52a248e2befb09945aff3f8fa9f2.tar.bz2
BUG: SWIG_FLAGS was ignored by the add swig source to module command
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r--Modules/UseSWIG.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 6a0f8bf..652cac6 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -46,6 +46,7 @@ MACRO(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
GET_FILENAME_COMPONENT(swig_source_file_name_we "${infile}" NAME_WE)
GET_SOURCE_FILE_PROPERTY(swig_source_file_generated ${infile} GENERATED)
GET_SOURCE_FILE_PROPERTY(swig_source_file_cplusplus ${infile} CPLUSPLUS)
+ GET_SOURCE_FILE_PROPERTY(swig_source_file_flags ${infile} SWIG_FLAGS)
SET(swig_source_file_fullname "${infile}")
IF(${swig_source_file_path} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}")
STRING(REGEX REPLACE
@@ -114,6 +115,7 @@ MACRO(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
OUTPUT "${swig_generated_file_fullname}"
COMMAND "${SWIG_EXECUTABLE}"
ARGS "-${SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG}"
+ ${swig_source_file_flags}
${swig_special_flags}
${swig_extra_flags}
${swig_include_dirs}