From 2df5c6033cfb752f312ecd27a080ed1685c26163 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 4 Apr 2005 16:55:35 -0400 Subject: [PATCH] ENH: make sure source flags don't have to be set --- Modules/UseSWIG.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 0f77f6d44..35ecc21a8 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