From 6c694141d2f8f3e8633b4d9ac5a835c98ea0f495 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 16 Jul 2014 13:13:49 +0200 Subject: [PATCH] fixed: ERT depends on libdl this issue was triggered with static libs for ERT --- cmake/Modules/FindERT.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/Modules/FindERT.cmake b/cmake/Modules/FindERT.cmake index 2f15d4f5..d2892efb 100644 --- a/cmake/Modules/FindERT.cmake +++ b/cmake/Modules/FindERT.cmake @@ -182,6 +182,9 @@ if (UNIX) list (APPEND ERT_LIBRARIES ${MATH_LIBRARY}) endif (UNIX) +# Platform specific library where dlopen with friends lives +list (APPEND ERT_LIBRARIES ${CMAKE_DL_LIBS}) + # since OpenMP often implies pthreads, we need to tidy up # (last instance of library must be left standing, thus reversing that # list before removing duplicates)