Merge pull request #249 from mjbudd77/master
Bug fix for cmake pkg-config search for lua 5.1 package. Ubuntu packa…
This commit is contained in:
commit
c7903e2129
|
@ -85,10 +85,12 @@ else(WIN32)
|
|||
endif()
|
||||
|
||||
# Check for LUA
|
||||
pkg_check_modules( LUA lua-5.1)
|
||||
pkg_search_module( LUA lua5.1 lua-5.1 )
|
||||
|
||||
if ( ${LUA_FOUND} )
|
||||
# Use System LUA
|
||||
message( STATUS "Using System Lua ${LUA_VERSION}" )
|
||||
|
||||
add_definitions( -D_S9XLUA_H ${LUA_CFLAGS} )
|
||||
|
||||
set( LUA_ENGINE_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/lua-engine.cpp )
|
||||
|
@ -96,6 +98,8 @@ else(WIN32)
|
|||
else ()
|
||||
|
||||
# Use Internal LUA
|
||||
message( STATUS "Using Internal Lua" )
|
||||
|
||||
add_definitions( -D_S9XLUA_H -I${CMAKE_CURRENT_SOURCE_DIR}/lua/src )
|
||||
|
||||
set( LUA_ENGINE_SOURCE
|
||||
|
|
Loading…
Reference in New Issue