aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8918eab..13fec5b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,7 +132,8 @@ elseif (${CMAKE_BUILD_TYPE} MATCHES "Release")
132endif() 132endif()
133 133
134if(CMAKE_DL_LIBS) 134if(CMAKE_DL_LIBS)
135 SET(YUE_DEP_LIBS ${LUA_LIBRARIES} " " ${CMAKE_DL_LIBS}) 135 target_link()
136 SET(YUE_DEP_LIBS ${LUA_LIBRARIES} " dl")
136else () 137else ()
137 SET(YUE_DEP_LIBS ${LUA_LIBRARIES}) 138 SET(YUE_DEP_LIBS ${LUA_LIBRARIES})
138endif() 139endif()