mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-24 13:18:07 -05:00
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:
@@ -351,6 +351,7 @@ if (lua_ADDED)
|
|||||||
# lua has no CMake support, so we create our own target
|
# lua has no CMake support, so we create our own target
|
||||||
|
|
||||||
FILE(GLOB lua_sources ${lua_SOURCE_DIR}/*.c)
|
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})
|
add_library(lua STATIC ${lua_sources})
|
||||||
|
|
||||||
target_include_directories(lua
|
target_include_directories(lua
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ if (lua_ADDED)
|
|||||||
# lua has no CMakeLists, so we create our own target
|
# lua has no CMakeLists, so we create our own target
|
||||||
|
|
||||||
FILE(GLOB lua_sources ${lua_SOURCE_DIR}/*.c)
|
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})
|
add_library(lua STATIC ${lua_sources})
|
||||||
|
|
||||||
target_include_directories(lua
|
target_include_directories(lua
|
||||||
|
|||||||
Reference in New Issue
Block a user