diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-18 01:46:34 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-18 01:46:34 (GMT) |
commit | 5991cfb42d6350ffd165c4d0a44bbaae3b60f175 (patch) | |
tree | e6a45beb81a74cc257c6bd5fee2a6d330ff10adb /Modules/FindSWIG.cmake | |
parent | 6eddfbdd91ce5bf0c4ac68fdbb6f84f7e7929fde (diff) | |
download | CMake-5991cfb42d6350ffd165c4d0a44bbaae3b60f175.zip CMake-5991cfb42d6350ffd165c4d0a44bbaae3b60f175.tar.gz CMake-5991cfb42d6350ffd165c4d0a44bbaae3b60f175.tar.bz2 |
ENH: no fatal error if not required
Diffstat (limited to 'Modules/FindSWIG.cmake')
-rw-r--r-- | Modules/FindSWIG.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake index e1f9d74..e31aab5 100644 --- a/Modules/FindSWIG.cmake +++ b/Modules/FindSWIG.cmake @@ -20,8 +20,12 @@ IF(SWIG_EXECUTABLE) ERROR_VARIABLE SWIG_swiglib_error RESULT_VARIABLE SWIG_swiglib_result) - IF(SWIG_swiglib_result) - MESSAGE(SEND_ERROR "Command \"${SWIG_EXECUTABLE} -swiglib\" failed with output:\n${SWIG_swiglib_error}") + IF(SWIG_swiglib_result) + IF(SWIG_FIND_REQUIRED) + 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) 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. |