From da1db43131e7dff4f74f59061fe704abd7564dd4 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 25 Jan 2023 22:57:55 +0800 Subject: fix CMakeList.txt --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") endif() if(CMAKE_DL_LIBS) - SET(YUE_DEP_LIBS ${LUA_LIBRARIES} " " ${CMAKE_DL_LIBS}) + target_link() + SET(YUE_DEP_LIBS ${LUA_LIBRARIES} " dl") else () SET(YUE_DEP_LIBS ${LUA_LIBRARIES}) endif() -- cgit v1.2.3-55-g6feb