1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-19 14:11:52 +02:00
openwrt-packages/plplot/patches/009-fix-libm.patch

17 lines
809 B
Diff
Raw Normal View History

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