fixed: ERT depends on libdl

this issue was triggered with static libs for ERT
This commit is contained in:
Arne Morten Kvarving 2014-07-16 13:13:49 +02:00 committed by Bård Skaflestad
parent 05a607c7c9
commit a4fcc0a99f

View File

@ -192,13 +192,6 @@ if (UNIX)
list (APPEND ERT_LIBRARIES ${MATH_LIBRARY})
endif (UNIX)
# if shared libraries are disabled on linux, explcitly linking to the
# pthreads library is required by ERT
find_package(Threads ${ERT_QUIET})
if (CMAKE_THREAD_LIBS_INIT)
list (APPEND ERT_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
endif()
# Platform specific library where dlopen with friends lives
list (APPEND ERT_LIBRARIES ${CMAKE_DL_LIBS})