From dcb562f13e0dbd00728377c024eade121cac48c7 Mon Sep 17 00:00:00 2001 From: Clemens Jonischkeit Date: Sat, 27 Apr 2024 13:03:33 +0200 Subject: [PATCH] unset CMAKE_REQUIRED_LIBRARIES after use --- lua-5.4.6/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lua-5.4.6/CMakeLists.txt b/lua-5.4.6/CMakeLists.txt index ba4b2ba..0bc5dfb 100644 --- a/lua-5.4.6/CMakeLists.txt +++ b/lua-5.4.6/CMakeLists.txt @@ -119,6 +119,7 @@ if(LUA_BUILD_BINARY) SET(CMAKE_REQUIRED_LIBRARIES tinfo) endif() CHECK_LIBRARY_EXISTS(readline readline "" HAVE_LIBRARY_READLINE) + SET(CMAKE_REQUIRED_LIBRARIES "") add_executable(lua "src/lua.c") # Can not use lua_shared because some symbols are not exported