mathgl/mathgl-no-hdf4-and-hdf5-simultaneously.patch

13 lines
446 B
Diff
Raw Normal View History

2013-04-14 19:17:26 +00:00
diff -r 9f8feb3b9d86 CMakeLists.txt
--- CMakeLists.txt Sun Apr 14 12:07:59 2013 +0100
+++ CMakeLists.txt Sun Apr 14 12:09:15 2013 +0100
2013-04-14 19:17:26 +00:00
@@ -121,7 +121,7 @@
set(MGL_HAVE_PTHREAD 0)
endif(enable-all OR enable-pthread)
-if((enable-all OR enable-hdf4) AND (NOT enable-lgpl) )
+if((enable-hdf4 AND (NOT enable-all) ) AND (NOT enable-lgpl) AND (NOT enable-hdf5))
set(MGL_HAVE_HDF4 1)
find_library(HDF4_LIB df)
find_library(HDF4MF_LIB mfhdf)