File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
1
# Locate LuaJIT library
2
2
# This module defines
3
3
# LUAJIT_FOUND, if false, do not try to link to Lua
4
+ # LUA_LIBRARY, where to find the lua library
4
5
# LUA_INCLUDE_DIR, where to find lua.h
5
- # LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
6
6
#
7
7
# This module is similar to FindLua51.cmake except that it finds LuaJit instead.
8
8
@@ -44,19 +44,10 @@ else()
44
44
)
45
45
endif ()
46
46
47
-
48
- IF (LUA_INCLUDE_DIR AND EXISTS "${LUA_INCLUDE_DIR} /luajit.h" )
49
- FILE (STRINGS "${LUA_INCLUDE_DIR} /luajit.h" lua_version_str REGEX "^#define[ \t ]+LUA_RELEASE[ \t ]+\" LuaJIT .+\" " )
50
-
51
- STRING (REGEX REPLACE "^#define[ \t ]+LUA_RELEASE[ \t ]+\" LuaJIT ([^\" ]+)\" .*" "\\ 1" LUA_VERSION_STRING "${lua_version_str} " )
52
- UNSET (lua_version_str)
53
- ENDIF ()
54
-
55
47
INCLUDE (FindPackageHandleStandardArgs)
56
48
# handle the QUIETLY and REQUIRED arguments and set LUAJIT_FOUND to TRUE if
57
- # all listed variables are TRUE
49
+ # all listed variables exist
58
50
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LuaJIT
59
- REQUIRED_VARS LUA_LIBRARY LUA_INCLUDE_DIR
60
- VERSION_VAR LUA_VERSION_STRING)
51
+ REQUIRED_VARS LUA_LIBRARY LUA_INCLUDE_DIR)
61
52
62
- MARK_AS_ADVANCED (LUA_INCLUDE_DIR LUA_LIBRARY LUA_MATH_LIBRARY )
53
+ MARK_AS_ADVANCED (LUA_INCLUDE_DIR LUA_LIBRARY)
You can’t perform that action at this time.
0 commit comments