Skip to content

Commit

Permalink
Merge pull request darktable-org#984 from beedaddy/lua52
Browse files Browse the repository at this point in the history
Changed so that (only) lua 5.2.x gets accepted
  • Loading branch information
houz committed Oct 15, 2015
2 parents 113469c + 03866a4 commit b98b370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmake/modules/FindLua52.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SET(LUA52_FIND_REQUIRED ${Lua52_FIND_REQUIRED})
SET(LUA52_FIND_VERSION ${Lua52_FIND_VERSION})
SET(LUA52_FIND_VERSION_EXACT ${Lua52_FIND_VERSION_EXACT})
SET(LUA52_FIND_QUIETLY ${Lua52_FIND_QUIETLY})
SET(LUA_VERSION_TOO_HIGH 5.3)

include(Prebuilt)
include(FindPkgConfig)
Expand All @@ -18,7 +19,8 @@ if(LUA52_FIND_VERSION)
endif()
else()
if(LUA52_VERSION VERSION_EQUAL LUA52_FIND_VERSION OR
LUA52_VERSION VERSION_GREATER LUA52_FIND_VERSION)
LUA52_VERSION VERSION_GREATER LUA52_FIND_VERSION AND
LUA52_VERSION VERSION_LESS LUA_VERSION_TOO_HIGH)
set(LUA52_FAILED_VERSION_CHECK false)
endif()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
# Build external deps
#
if(USE_LUA)
find_package(Lua52 5.2 EXACT)
find_package(Lua52 5.2)
if(LUA52_FOUND)
message(STATUS "Lua support: Enabled")
include_directories(SYSTEM ${LUA52_INCLUDE_DIRS})
Expand Down

0 comments on commit b98b370

Please sign in to comment.