File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
#
2
2
# Lua bindings for libgit2
3
3
#
4
- cmake_minimum_required (VERSION 2.8 )
4
+ cmake_minimum_required (VERSION 3.18 )
5
5
6
6
project (lua-git2 C)
7
7
@@ -10,16 +10,14 @@ set(BUILD_SHARED_LIBS TRUE)
10
10
set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} /cmake)
11
11
12
12
set (INSTALL_CMOD share/lua/cmod CACHE PATH "Directory to install Lua binary modules (configure lua via LUA_CPATH)" )
13
- set (USE_PRE_GENERATED_BINDINGS TRUE CACHE BOOL
14
- "Set this to FALSE to re-generate bindings using LuaNativeObjects" )
15
13
16
14
set (COMMON_CFLAGS "${CFLAGS} " )
17
15
set (COMMON_LIBS)
18
16
19
- ## Lua 5.1. x
20
- include (FindLua51 )
21
- if (NOT ${LUA51_FOUND } )
22
- message (FATAL_ERROR "The FindLua51 module could not find lua :-(" )
17
+ ## Lua 5.x
18
+ include (FindLua )
19
+ if (NOT ${LUA_FOUND } )
20
+ message (FATAL_ERROR "The FindLua module could not find lua :-(" )
23
21
endif ()
24
22
set (COMMON_LIBS "${COMMON_LIBS} ;${LUA_LIBRARIES} " )
25
23
include_directories (${LUA_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments