From 5b6e96336d6a615a72c274cceaea8c2fe74d7642 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 27 Mar 2011 14:52:58 +0200 Subject: [PATCH] also link the shared libuci to libdl --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e50a5b..7df3be9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ SET(LIB_SOURCES libuci.c file.c util.c delta.c) ADD_LIBRARY(uci-shared SHARED ${LIB_SOURCES}) SET_TARGET_PROPERTIES(uci-shared PROPERTIES OUTPUT_NAME uci) +TARGET_LINK_LIBRARIES(uci-shared dl) ADD_LIBRARY(uci-static STATIC ${LIB_SOURCES}) SET_TARGET_PROPERTIES(uci-static PROPERTIES OUTPUT_NAME uci) -- 2.25.1