Root/plplot/patches/009-fix-libm.patch

1Index: plplot-5.9.7/cmake/modules/plplot.cmake
2===================================================================
3--- plplot-5.9.7.orig/cmake/modules/plplot.cmake 2011-05-26 20:55:13.000000000 +0200
4+++ plplot-5.9.7/cmake/modules/plplot.cmake 2011-05-26 21:03:13.000000000 +0200
5@@ -481,9 +481,9 @@
6 # On windows systems the math library is not separated so do not specify
7 # it unless you are on a non-windows system.
8 if(NOT WIN32)
9- find_library(MATH_LIB NAMES m PATHS /usr/local/lib /usr/lib)
10+ find_library(MATH_LIB NAMES m PATHS /usr/local/lib /usr/lib /lib)
11   if(NOT MATH_LIB)
12- message(FATAL_ERROR "Cannot find required math library")
13+ message("Cannot find required math library, continuing anyway")
14   endif(NOT MATH_LIB)
15 endif(NOT WIN32)
16 # Must come after MATH_LIB is defined (or not).
17

Archive Download this file



interactive