Blame mathgl-2.2-no-hdf4-and-hdf5-simultaneously.patch
|
Dmitrij S. Kryzhevich |
2fc8359 |
--- CMakeLists.txt 2013-12-27 17:24:33.553596153 +0700
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
+++ CMakeLists.txt-no-hdf4-and-hdf5-simultaneously 2013-12-27 17:25:13.937026671 +0700
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
@@ -215,7 +215,7 @@ endif(enable-gsl)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
# set(MGL_HAVE_LTDL 0)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
#endif(enable-all OR enable-ltdl)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
-if(enable-hdf4)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
+if(enable-hdf4 AND (NOT enable-hdf5))
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
set(MGL_HAVE_HDF4 1)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
find_library(HDF4_LIB df)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
find_library(HDF4MF_LIB mfhdf)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
@@ -226,9 +226,9 @@ if(enable-hdf4)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
message(SEND_ERROR "${HDF4_INCLUDE_DIR}")
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
message(SEND_ERROR "Couldn't find HDF4 libraries.")
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
endif(NOT HDF4_LIB OR NOT HDF4MF_LIB OR NOT HDF4_INCLUDE_DIR)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
-else(enable-hdf4)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
+else(enable-hdf4 AND (NOT enable-hdf5))
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
set(MGL_HAVE_HDF4 0)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
-endif(enable-hdf4)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
+endif(enable-hdf4 AND (NOT enable-hdf5))
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
if(enable-hdf5)
|
|
Dmitrij S. Kryzhevich |
2fc8359 |
set(MGL_HAVE_HDF5 1)
|