Advertisement
Guest User

Untitled

a guest
Sep 4th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. $ diff -u FindSWIG.cmake~ FindSWIG.cmake
  2. --- FindSWIG.cmake~ 2017-08-10 06:36:32.000000000 -0700
  3. +++ FindSWIG.cmake 2017-08-27 11:40:41.354209400 -0700
  4. @@ -40,7 +40,9 @@
  5. message(STATUS "Command \"${SWIG_EXECUTABLE} -swiglib\" failed with output:\n${SWIG_swiglib_error}")
  6. endif()
  7. else()
  8. - string(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output})
  9. + string(REGEX REPLACE "[\n\r]+" "" SWIG_swiglib_output ${SWIG_swiglib_output})
  10. + SET(SWIG_swiglib_output "c:/gcdev64/msys2${SWIG_swiglib_output}")
  11. + MESSAGE(STATUS "Checking Swig Directory ${SWIG_swiglib_output}'")
  12. find_path(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output} NO_CMAKE_FIND_ROOT_PATH)
  13. if(SWIG_DIR)
  14. set(SWIG_USE_FILE ${CMAKE_CURRENT_LIST_DIR}/UseSWIG.cmake)
  15. @@ -55,8 +57,12 @@
  16. SWIG_version_output "${SWIG_version_output}")
  17. set(SWIG_VERSION ${SWIG_version_output} CACHE STRING "Swig version" FORCE)
  18. endif()
  19. + else()
  20. + MESSAGE(SEND_ERROR "Failed to find swig.swg in ${SWIG_swiglib_output}.")
  21. endif()
  22. endif()
  23. + else()
  24. + MESSAGE(SEND_ERROR "No Swig Executable")
  25. endif()
  26.  
  27. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement