- Timestamp:
- Jan 29, 2009, 10:45:56 PM (16 years ago)
- Location:
- code/branches/buildsystem2/cmake
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/LibraryConfig.cmake
r2612 r2615 23 23 FIND_PACKAGE(DirectX REQUIRED) 24 24 25 # Require Lua 5.0 or 5.1 26 FIND_PACKAGE(Lua50 QUIET) 27 IF(NOT LUA50_FOUND) 28 # Remove variables set by Lua50 and try with Lua51 29 SET(LUA_INCLUDE_DIR) 30 SET(LUA_LIBRARY_lua) 31 SET(LUA_LIBRARY_lualib) 32 SET(LUA_LIBRARIES) 33 FIND_PACKAGE(Lua51 REQUIRED) 34 ENDIF(NOT LUA50_FOUND) 35 # Determine Lua version (Lua50 may also find Lua51) 36 FILE(STRINGS "${LUA_INCLUDE_DIR}/lua.h" LUA_VERSION REGEX "LUA_VERSION") 37 STRING(REGEX REPLACE "^.*\"Lua (.*)\".*$" "\\1" LUA_VERSION "${LUA_VERSION}") 25 ##### Lua ##### 26 IF(CEGUILUA_USE_EXTERNAL_LIBRARY) 27 COMPARE_VERSION_STRINGS(${CEGUI_VERSION} "0.6" _version_comparison) 28 IF(version_comparison LESS 0) 29 SET(LUA_VERSION_REQUEST 5.0) 30 ELSE(version_comparison LESS 0) 31 SET(LUA_VERSION_REQUEST 5.1) 32 ENDIF(version_comparison LESS 0) 33 ELSE(CEGUILUA_USE_EXTERNAL_LIBRARY) 34 SET(LUA_VERSION_REQUEST 5) 35 ENDIF(CEGUILUA_USE_EXTERNAL_LIBRARY) 36 FIND_PACKAGE(Lua ${LUA_VERSION_REQUEST} EXACT REQUIRED) 38 37 39 38 # QUIET: Don't require the whole tcl rat tail
Note: See TracChangeset
for help on using the changeset viewer.