Link libdl

This commit is contained in:
Guilhem Lavaux 2015-10-28 13:57:24 +01:00
parent bd6853d96d
commit 1725125d76
3 changed files with 2 additions and 2 deletions

View File

@ -50,6 +50,7 @@ ENDIF(YORICK_SUPPORT)
find_program(CYTHON cython)
find_library(ZLIB z)
find_library(DL_LIBRARY dl)
set(NETCDF_FIND_REQUIRED ${YORICK_SUPPORT})
set(GSL_FIND_REQUIRED TRUE)

View File

@ -744,7 +744,6 @@ cdef DTYPE_t C_line_of_sight_projection(DTYPE_t[:,:,:] density,
jumper[0] = 0
dist2 = 0
while completed == 0:
I0 += integrator(density, u, u0, u_delta, iu0, jumper, max_distance-sqrt(dist2))
if u[jumper[0]] < 0:

View File

@ -1,4 +1,4 @@
SET(tolink ${GSL_LIBRARIES} ${CosmoTool_local} ${CosmoTool_LIBS})
SET(tolink ${GSL_LIBRARIES} ${CosmoTool_local} ${CosmoTool_LIBS} ${DL_LIBRARY})
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${FFTW3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${GSL_INCLUDE_PATH})
if(YORICK_SUPPORT)