From d17500b0be23a96b78fa9556d6cf4f48af70b530 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Sun, 13 Sep 2020 03:00:19 -0700 Subject: [PATCH] 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 --- README.md | 1 + examples/sol2/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 2915a9b..5ca3d9a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/examples/sol2/CMakeLists.txt b/examples/sol2/CMakeLists.txt index 07f8d63..c28274c 100644 --- a/examples/sol2/CMakeLists.txt +++ b/examples/sol2/CMakeLists.txt @@ -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