Imported compile fixes from VIDE private repository

This commit is contained in:
Guilhem Lavaux 2015-06-09 22:06:45 +02:00
parent 787cdee4c3
commit d937b2fa80
4 changed files with 5 additions and 3 deletions

View file

@ -10,6 +10,7 @@ check_c_compiler_flag(-march=native SUPPORT_ARCH_NATIVE )
find_library(MATH_LIB m)
find_library(DL_LIB dl)
macro(add_genopt _sourcelist _ggofile _basefile)

View file

@ -32,7 +32,7 @@ ENDIF (CAIROMMCONFIG_INCLUDE_PATH AND CAIROMM_INCLUDE_PATH AND SIGC_INCLUDE_PATH
SET(ZOB_LIBS zobovTool
${COSMOTOOL_LIBRARY} ${GSL_LIBRARIES}
${NETCDF_LIBRARIES})
${NETCDF_LIBRARIES} ${DL_LIB})
include_directories(

View file

@ -14,7 +14,8 @@ This file has been developped by P. M. Sutter.
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <string>
#include <cstring>
#include "hdf5_flash.h"
#include "H5Cpp.h"

View file

@ -121,7 +121,7 @@ else(INTERNAL_HDF5)
find_library(HDF5HL_LIBRARY hdf5_hl)
endif (INTERNAL_HDF5)
SET(CONFIGURE_CPP_FLAGS "${CONFIGURE_CPP_FLAGS} -I${HDF5_INCLUDE_PATH}")
SET(CONFIGURE_LIBS_FLAGS "-ldl")
SET(CONFIGURE_LIBS_FLAGS "${DL_LIB}")
mark_as_advanced(HDF5_INCLUDE_PATH HDF5_LIBRARY HDF5_CPP_LIBRARY HDF5HL_LIBRARY HDF5HL_CPP_LIBRARY)
###############