CMakeLists.txt
branchphysfslayer
changeset 8037 547f94509079
parent 8034 fc032c0f7b23
child 8043 da083f8d95e6
equal deleted inserted replaced
8034:fc032c0f7b23 8037:547f94509079
   237 if(LUA_FOUND)
   237 if(LUA_FOUND)
   238     message(STATUS "Found LUA: ${LUA_DEFAULT}")
   238     message(STATUS "Found LUA: ${LUA_DEFAULT}")
   239 else()
   239 else()
   240     message(STATUS "LUA will be provided by the bundled sources")
   240     message(STATUS "LUA will be provided by the bundled sources")
   241     add_subdirectory(misc/liblua)
   241     add_subdirectory(misc/liblua)
   242     set(LUA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/misc/liblua)
       
   243     #linking with liblua.a requires system readline -- this works everywhere, right?
   242     #linking with liblua.a requires system readline -- this works everywhere, right?
   244     set(pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline" ${pascal_flags})
   243     set(pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline" ${pascal_flags})
   245     add_dependencies(physfsrwops lua)
   244     add_dependencies(physfsrwops lua)
   246 endif()
   245 endif()
   247 
   246