ignore lua.c and luac.c from lua (#149)

* ignore lua.c and luac.c from lua

* Update README.md

* update CMakeLists.txt for sol2
This commit is contained in:
Prabir Shrestha
2020-09-13 03:00:19 -07:00
committed by GitHub
parent 5e0c3855c7
commit d17500b0be
2 changed files with 2 additions and 0 deletions

View File

@@ -351,6 +351,7 @@ if (lua_ADDED)
# lua has no CMake support, so we create our own target
FILE(GLOB lua_sources ${lua_SOURCE_DIR}/*.c)
list(REMOVE_ITEM lua_sources "${lua_SOURCE_DIR}/lua.c" "${lua_SOURCE_DIR}/luac.c")
add_library(lua STATIC ${lua_sources})
target_include_directories(lua

View File

@@ -17,6 +17,7 @@ if (lua_ADDED)
# lua has no CMakeLists, so we create our own target
FILE(GLOB lua_sources ${lua_SOURCE_DIR}/*.c)
list(REMOVE_ITEM lua_sources "${lua_SOURCE_DIR}/lua.c" "${lua_SOURCE_DIR}/luac.c")
add_library(lua STATIC ${lua_sources})
target_include_directories(lua