unset CMAKE_REQUIRED_LIBRARIES after use

This commit is contained in:
Clemens Jonischkeit 2024-04-27 13:03:33 +02:00
parent 8658373dd9
commit dcb562f13e

View File

@ -119,6 +119,7 @@ if(LUA_BUILD_BINARY)
SET(CMAKE_REQUIRED_LIBRARIES tinfo) SET(CMAKE_REQUIRED_LIBRARIES tinfo)
endif() endif()
CHECK_LIBRARY_EXISTS(readline readline "" HAVE_LIBRARY_READLINE) CHECK_LIBRARY_EXISTS(readline readline "" HAVE_LIBRARY_READLINE)
SET(CMAKE_REQUIRED_LIBRARIES "")
add_executable(lua "src/lua.c") add_executable(lua "src/lua.c")
# Can not use lua_shared because some symbols are not exported # Can not use lua_shared because some symbols are not exported