Description: Changes the static linking of external libraries to dynamic link
Author: Matthew Bekkema <mat8913ftw@gmail.com>

---
 src/CMakeLists.txt |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Index: b/src/CMakeLists.txt
===================================================================
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -174,10 +174,13 @@
 	set(CGUITTFONT_LIBRARY cguittfont)
 endif(USE_FREETYPE)
 
-# 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")
+# DEBIAN CHANGE: Upstream use their included lua and json to play safe, but we
+# naturally use the system-wide installations. That's why distros are made.
+set(LUA_INCLUDE_DIR "/usr/include/lua5.1/")
+set(LUA_LIBRARY "lua5.1")
+
+set(JSON_INCLUDE_DIR "/usr/include/jsoncpp/")
+set(JSON_LIBRARY "jsoncpp")
 
 configure_file(
 	"${PROJECT_SOURCE_DIR}/cmake_config.h.in"
@@ -595,12 +598,10 @@
 
 if (LUA_FOUND)
 else (LUA_FOUND)
-	add_subdirectory(lua)
 endif (LUA_FOUND)
 
 if (JSON_FOUND)
 else (JSON_FOUND)
-	add_subdirectory(json)
 endif (JSON_FOUND)
 
 #end
