summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-04 20:55:35 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-04 20:55:35 (GMT)
commit2df5c6033cfb752f312ecd27a080ed1685c26163 (patch)
tree8f23bd8df5f5a3bbd77bb79240abef10a07c30b1 /Modules
parentab7d51581c6278f3c9792e3e5bb277dc19a2d205 (diff)
downloadCMake-2df5c6033cfb752f312ecd27a080ed1685c26163.zip
CMake-2df5c6033cfb752f312ecd27a080ed1685c26163.tar.gz
CMake-2df5c6033cfb752f312ecd27a080ed1685c26163.tar.bz2
ENH: make sure source flags don't have to be set
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 0f77f6d..35ecc21 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -65,6 +65,9 @@ MACRO(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
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)
+ IF(${swig_source_file_flags} STREQUAL "NOTFOUND")
+ SET(swig_source_file_flags "")
+ ENDIF(${swig_source_file_flags} STREQUAL "NOTFOUND")
SET(swig_source_file_fullname "${infile}")
IF(${swig_source_file_path} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}")
STRING(REGEX REPLACE