--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ endif (XATTR_FOUND) if (LUA_SCRIPT) - find_package (Lua REQUIRED) + find_package (Lua ${LUA_VERSION} EXACT REQUIRED) add_definitions ( -DLUA_SCRIPT ) message (STATUS "Building with Lua scripts support") else (LUA_SCRIPT)