Changeset 7941 for code/branches/kicklib/cmake/LibraryConfig.cmake
- Timestamp:
- Feb 20, 2011, 10:49:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/cmake/LibraryConfig.cmake
r7459 r7941 109 109 ##### CEGUI ##### 110 110 # We make use of the CEGUI script module called CEGUILua. 111 # However there is a small issue with that: We use Tolua, a C++ binding 112 # generator ourselves. And we also have to use our bindings in the same 113 # lua state is CEGUILua's. Unfortunately this implies that both lua runtime 114 # version are equal or else you get segmentation faults. 115 # In order to match the Lua versions we decided to ship CEGUILua in our 116 # repository, mainly because there is no way to determine which version of 117 # Lua CEGUILua was linked against (you'd have to specify yourself) and secondly 118 # because we can then choose the Lua version. Future plans might involve only 119 # accepting Lua 5.1. 120 121 # Insert all internally supported CEGUILua versions here 122 SET(CEGUILUA_INTERNAL_SUPPORT 0.5.0 0.6.0 0.6.1 0.6.2) 123 OPTION(CEGUILUA_USE_EXTERNAL_LIBRARY "Force the use of external CEGUILua library" OFF) 111 # However there is a small issue with that: Both CEGUILua and Orxonox use 112 # Lua library functions on the same objects. And it turns out that in this case 113 # the linked library must be EXACTLY the same. 114 # That means for us we have to find the Lua library that CEGUI was 115 # linked against if we don't use a dependency package. 116 124 117 FIND_PACKAGE(CEGUI 0.5 REQUIRED) 125 118 126 119 ##### Lua ##### 127 IF(CEGUILUA_USE_EXTERNAL_LIBRARY) 128 COMPARE_VERSION_STRINGS(${CEGUI_VERSION} "0.6" _version_comparison) 129 IF(version_comparison LESS 0) 130 SET(LUA_VERSION_REQUEST 5.0) 131 ELSE() 132 SET(LUA_VERSION_REQUEST 5.1) 133 ENDIF() 120 IF(NOT LUA_VERSION_REQUIREMENT) 121 FIND_PACKAGE(Lua 5 REQUIRED) 134 122 ELSE() 135 SET(LUA_VERSION_REQUEST 5) 136 ENDIF() 137 FIND_PACKAGE(Lua ${LUA_VERSION_REQUEST} EXACT REQUIRED) 123 FIND_PACKAGE(Lua ${LUA_VERSION_REQUIREMENT} EXACT REQUIRED) 124 ENDIF() 138 125 139 126 ##### OpenAL #####
Note: See TracChangeset
for help on using the changeset viewer.