Commit 2df5c603 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make sure source flags don't have to be set

parent ab7d5158
...@@ -65,6 +65,9 @@ MACRO(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) ...@@ -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_generated ${infile} GENERATED)
GET_SOURCE_FILE_PROPERTY(swig_source_file_cplusplus ${infile} CPLUSPLUS) GET_SOURCE_FILE_PROPERTY(swig_source_file_cplusplus ${infile} CPLUSPLUS)
GET_SOURCE_FILE_PROPERTY(swig_source_file_flags ${infile} SWIG_FLAGS) 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}") SET(swig_source_file_fullname "${infile}")
IF(${swig_source_file_path} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}") IF(${swig_source_file_path} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}")
STRING(REGEX REPLACE STRING(REGEX REPLACE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment