Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ diff -u FindSWIG.cmake~ FindSWIG.cmake
- --- FindSWIG.cmake~ 2017-08-10 06:36:32.000000000 -0700
- +++ FindSWIG.cmake 2017-08-27 11:40:41.354209400 -0700
- @@ -40,7 +40,9 @@
- message(STATUS "Command \"${SWIG_EXECUTABLE} -swiglib\" failed with output:\n${SWIG_swiglib_error}")
- endif()
- else()
- - string(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output})
- + string(REGEX REPLACE "[\n\r]+" "" SWIG_swiglib_output ${SWIG_swiglib_output})
- + SET(SWIG_swiglib_output "c:/gcdev64/msys2${SWIG_swiglib_output}")
- + MESSAGE(STATUS "Checking Swig Directory ${SWIG_swiglib_output}'")
- find_path(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output} NO_CMAKE_FIND_ROOT_PATH)
- if(SWIG_DIR)
- set(SWIG_USE_FILE ${CMAKE_CURRENT_LIST_DIR}/UseSWIG.cmake)
- @@ -55,8 +57,12 @@
- SWIG_version_output "${SWIG_version_output}")
- set(SWIG_VERSION ${SWIG_version_output} CACHE STRING "Swig version" FORCE)
- endif()
- + else()
- + MESSAGE(SEND_ERROR "Failed to find swig.swg in ${SWIG_swiglib_output}.")
- endif()
- endif()
- + else()
- + MESSAGE(SEND_ERROR "No Swig Executable")
- endif()
- include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement