2012-12-07 14:19:33 +04:00
|
|
|
--- src/CMakeLists.txt
|
|
|
|
+++ src/CMakeLists.txt
|
2013-03-07 17:52:27 +04:00
|
|
|
@@ -179,10 +179,8 @@
|
|
|
|
set(CGUITTFONT_LIBRARY cguittfont)
|
|
|
|
endif(USE_FREETYPE)
|
2012-12-07 14:19:33 +04:00
|
|
|
|
|
|
|
-# Do not use system-wide installation of Lua, because it'll likely be a
|
|
|
|
-# different version and/or has different build options.
|
|
|
|
-set(LUA_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lua/src")
|
|
|
|
-set(LUA_LIBRARY "lua")
|
2013-03-07 17:52:27 +04:00
|
|
|
+# Do not use bundled libraries if system libraries are available
|
2012-12-07 14:19:33 +04:00
|
|
|
+find_package(Lua51 REQUIRED)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
"${PROJECT_SOURCE_DIR}/cmake_config.h.in"
|
2013-03-07 17:52:27 +04:00
|
|
|
@@ -586,11 +584,6 @@
|
|
|
|
add_subdirectory(cguittfont)
|
|
|
|
endif (BUILD_CLIENT AND USE_FREETYPE)
|
2012-12-07 14:19:33 +04:00
|
|
|
|
|
|
|
-if (LUA_FOUND)
|
|
|
|
-else (LUA_FOUND)
|
|
|
|
- add_subdirectory(lua)
|
|
|
|
-endif (LUA_FOUND)
|
|
|
|
-
|
2013-03-07 17:52:27 +04:00
|
|
|
if (JSON_FOUND)
|
|
|
|
else (JSON_FOUND)
|
|
|
|
add_subdirectory(json)
|