From b05e27f8b1be83287441f82cb2f19a37aed2c1b6 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Mon, 6 Oct 2014 21:17:31 +0200 Subject: [PATCH] need to link with -ldl on Linux when building statically --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 633a5e8d..6db1a723 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,6 +217,7 @@ if(MINGW) elseif(APPLE OR FREEBSD) set(Boost_LIBRARIES "${Boost_LIBRARIES}") elseif(NOT MSVC) + set(Boost_LIBRARIES "${Boost_LIBRARIES};ld") #set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread") endif()