mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-15 20:25:43 +08:00
unset CMAKE_REQUIRED_LIBRARIES after use
This commit is contained in:
parent
8658373dd9
commit
dcb562f13e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user