1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-30 04:03:44 +02:00
openwrt-packages/plplot/patches/005-fix-findswig.patch

14 lines
764 B
Diff
Raw Normal View History

2011-01-15 17:35:56 +02:00
Index: plplot-5.9.7/cmake/modules/FindSWIG.cmake
===================================================================
--- plplot-5.9.7.orig/cmake/modules/FindSWIG.cmake 2011-01-15 16:00:41.000000000 +0100
+++ plplot-5.9.7/cmake/modules/FindSWIG.cmake 2011-01-15 16:01:09.000000000 +0100
@@ -26,7 +26,7 @@
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.
SET(SWIG_DIR SWIG_DIR-NOTFOUND)
- FIND_PATH(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output})
+ FIND_PATH(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output} NO_CMAKE_FIND_ROOT_PATH)
IF(SWIG_DIR)
SET(SWIG_FOUND 1)
SET(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake)