From e4b29878cedb947730993197a1885e235ba94b07 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Fri, 14 Dec 2018 17:01:10 -0800 Subject: [PATCH] shared libraries should be linked to their dependencies --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58171f8..fa9c6d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,6 +91,7 @@ include_directories( add_library(mcl STATIC ${SRCS}) add_library(mcl_dy SHARED ${SRCS}) +target_link_libraries(mcl_dy ${LIBS}) set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl) if(NOT USE_OLD_SHARED_NAME) set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl)