Oops, didn't realize FindLua.cmake is our own module physfslayer
authorunc0rr
Sat, 17 Nov 2012 00:10:46 +0400
branchphysfslayer
changeset 8037 547f94509079
parent 8034 fc032c0f7b23
child 8040 448d61778ca7
Oops, didn't realize FindLua.cmake is our own module
CMakeLists.txt
misc/physfs/extras/CMakeLists.txt
--- 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)