Root/plplot/patches/005-fix-findswig.patch

1Index: plplot-5.9.7/cmake/modules/FindSWIG.cmake
2===================================================================
3--- plplot-5.9.7.orig/cmake/modules/FindSWIG.cmake 2011-01-15 16:00:41.000000000 +0100
4+++ plplot-5.9.7/cmake/modules/FindSWIG.cmake 2011-01-15 16:01:09.000000000 +0100
5@@ -26,7 +26,7 @@
6     STRING(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output})
7     # force the path to be computed each time in case SWIG_EXECUTABLE has changed.
8     SET(SWIG_DIR SWIG_DIR-NOTFOUND)
9- FIND_PATH(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output})
10+ FIND_PATH(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output} NO_CMAKE_FIND_ROOT_PATH)
11     IF(SWIG_DIR)
12       SET(SWIG_FOUND 1)
13       SET(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake)
14

Archive Download this file



interactive