From: Dimitrios Eftaxiopoulos Date: Thu, 15 Mar 2012 16:50:06 +0000 (+0200) Subject: Imported Upstream version 2~rc2+svn364 X-Git-Tag: archive/raspbian/2.5-2+rpi1^2~26^2~36 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=47514014f880ef964250aaa8d62f169db25355b2;p=mathgl.git Imported Upstream version 2~rc2+svn364 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 71efbc4..91d7512 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -79,11 +79,11 @@ if(use_gif) endif(use_gif) if(use_hdf5 OR use_hdf5_18) - target_link_libraries(mgl ${HDF5_LIB}) + target_link_libraries(mgl ${HDF5_LIBRARIES}) add_definitions(-DHAVE_HDF5) - if(use_hdf5) + if(NOT use_hdf5_18) add_definitions(-DH5_USE_16_API) - endif(use_hdf5) + endif(NOT use_hdf5_18) include_directories(${HDF5_INCLUDE_DIR}) endif(use_hdf5 OR use_hdf5_18)