Blame mathgl-2.3-no-hdf4-and-hdf5-simultaneously.patch
|
Dmitrij S. Kryzhevich |
be99495 |
--- CMakeLists.txt.initial 2014-10-07 17:16:53.271970273 +0700
|
|
Dmitrij S. Kryzhevich |
be99495 |
+++ CMakeLists.txt 2014-10-07 17:17:01.168867231 +0700
|
|
Dmitrij S. Kryzhevich |
be99495 |
@@ -265,7 +265,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 |
be99495 |
@@ -276,9 +276,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)
|