summaryrefslogtreecommitdiffstats
path: root/lib/lua/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lua/CMakeLists.txt')
-rw-r--r--lib/lua/CMakeLists.txt21
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt
index 526be7a46..2fc194874 100644
--- a/lib/lua/CMakeLists.txt
+++ b/lib/lua/CMakeLists.txt
@@ -5,25 +5,8 @@ project (lua)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
file(GLOB SOURCE
- "*.c"
+ "src/*.c"
)
-list(REMOVE_ITEM SOURCE "${PROJECT_SOURCE_DIR}/lua.c")
+add_library(lua ${SOURCE})
-if ((${CMAKE_GENERATOR} MATCHES "Unix Makefiles") AND (NOT LUA_CMAKE_BUILD))
- if(NOT ${PROJECT_SOURCE_DIR} MATCHES ${PROJECT_BINARY_DIR})
- message(WARNING "lua does not support prefix when using the makefile")
- endif()
- ADD_CUSTOM_COMMAND(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lua
- COMMAND "make"
- DEPENDS ${SOURCE}
- )
-
-
-else()
- message("generator [${CMAKE_GENERATOR}] does not match Unix Makefiles so manually compiling lua")
-
- add_library(lua ${SOURCE})
-
-endif()