mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 02:40:17 +02:00
- added support for checking if LuaJit library is installed and use that instead of normal Lua for increased lua performance (Currently only implemented in gcc builds)
This commit is contained in:
@@ -109,11 +109,24 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST
|
||||
# SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${VORBIS_FILE_LIBRARY})
|
||||
# ENDIF()
|
||||
|
||||
FIND_PACKAGE(LUA REQUIRED)
|
||||
INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR})
|
||||
IF(UNIX)
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${LUA_LIBRARIES})
|
||||
ENDIF()
|
||||
|
||||
FIND_PACKAGE(LUAJIT)
|
||||
IF(LUAJIT_FOUND)
|
||||
MESSAGE(STATUS "**NOTE: LUAJIT found and will grealy improve Lua performance.")
|
||||
|
||||
INCLUDE_DIRECTORIES(${LUAJIT_INCLUDE_DIR})
|
||||
IF(UNIX)
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${LUAJIT_LIBRARIES})
|
||||
ENDIF()
|
||||
ELSE()
|
||||
MESSAGE(STATUS "**WARNING: LUAJIT NOT found and will grealy affect Lua performance.")
|
||||
|
||||
FIND_PACKAGE(LUA REQUIRED)
|
||||
INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR})
|
||||
IF(UNIX)
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${LUA_LIBRARIES})
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
OPTION(WANT_STATIC_LIBS "builds as many static libs as possible" OFF)
|
||||
|
||||
|
Reference in New Issue
Block a user