[Server] Add FORCE_LUA parameter to CMakeLists.txt

This commit is contained in:
Koncord 2017-02-21 18:04:06 +08:00
parent a1988ac6ef
commit 7dde4db1fb

View file

@ -35,9 +35,10 @@ if(BUILD_WITH_PAWN)
endif(BUILD_WITH_PAWN)
option(BUILD_WITH_LUA "Enable Terra/Lua language" ON)
option(FORCE_LUA "Use Lua instead Terra" OFF)
if(BUILD_WITH_LUA)
#set(Terra_ROOT ${CMAKE_SOURCE_DIR}/external/terra/)
if(WIN32)
if(WIN32 OR FORCE_LUA)
find_package(Lua51 REQUIRED)
MESSAGE(STATUS "Found LUA_LIBRARY: ${LUA_LIBRARY}")
MESSAGE(STATUS "Found LUA_INCLUDE_DIR: ${LUA_INCLUDE_DIR}")