ENH: no fatal error if not required

This commit is contained in:
Bill Hoffman 2008-06-17 21:46:34 -04:00
parent 6eddfbdd91
commit 5991cfb42d
1 changed files with 6 additions and 2 deletions

View File

@ -21,7 +21,11 @@ IF(SWIG_EXECUTABLE)
RESULT_VARIABLE SWIG_swiglib_result) RESULT_VARIABLE SWIG_swiglib_result)
IF(SWIG_swiglib_result) IF(SWIG_swiglib_result)
IF(SWIG_FIND_REQUIRED)
MESSAGE(SEND_ERROR "Command \"${SWIG_EXECUTABLE} -swiglib\" failed with output:\n${SWIG_swiglib_error}") MESSAGE(SEND_ERROR "Command \"${SWIG_EXECUTABLE} -swiglib\" failed with output:\n${SWIG_swiglib_error}")
ELSE(SWIG_FIND_REQUIRED)
MESSAGE(STATUS "Command \"${SWIG_EXECUTABLE} -swiglib\" failed with output:\n${SWIG_swiglib_error}")
ENDIF(SWIG_FIND_REQUIRED)
ELSE(SWIG_swiglib_result) ELSE(SWIG_swiglib_result)
STRING(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output}) STRING(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output})
# force the path to be computed each time in case SWIG_EXECUTABLE has changed. # force the path to be computed each time in case SWIG_EXECUTABLE has changed.