--- a/CMakeLists.txt Sat Nov 17 00:01:06 2012 +0400
+++ b/CMakeLists.txt Sat Nov 17 00:10:46 2012 +0400
@@ -239,7 +239,6 @@
else()
message(STATUS "LUA will be provided by the bundled sources")
add_subdirectory(misc/liblua)
- set(LUA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/misc/liblua)
#linking with liblua.a requires system readline -- this works everywhere, right?
set(pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline" ${pascal_flags})
add_dependencies(physfsrwops lua)
--- a/misc/physfs/extras/CMakeLists.txt Sat Nov 17 00:01:06 2012 +0400
+++ b/misc/physfs/extras/CMakeLists.txt Sat Nov 17 00:10:46 2012 +0400
@@ -1,7 +1,7 @@
find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIR})
-include_directories(${LUA_INCLUDE_DIR})
+include_directories(${CMAKE_SOURCE_DIR}/misc/liblua)
include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/src)
add_library(physfsrwops STATIC physfsrwops.c physfslualoader.c)