index
:
minetest.git
gpcf
lifo-fixes
release
modified minetest for gpcfs purposes
gpcf
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
fonts
/
lucida_sans_100.png
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
kwolekr <kwolekr@minetest.net>
2015-01-18 13:14:25 -0500
committer
kwolekr <kwolekr@minetest.net>
2015-01-18 13:24:25 -0500
commit
976d0b2caa3f69c0b7c40e98517073e08e87774d
(
# Locate LuaJIT library
# This module defines
# LUAJIT_FOUND, if false, do not try to link to Lua
# LUA_INCLUDE_DIR, where to find lua.h
# LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
#
# This module is similar to FindLua51.cmake except that it finds LuaJit instead.
FIND_PATH
(
LUA_INCLUDE_DIR
luajit
.
h
HINTS
$
ENV
{
LUA_DIR
}
PATH_SUFFIXES
include
/
luajit
-
2.0
include
/
luajit
-
5_1
-
2.0
include
PATHS
~/
Library
/
Frameworks
/
Library
/
Frameworks
/
sw
# Fink
/
opt
/
local
# DarwinPorts
/
opt
/
csw
# Blastwave
/
opt
)
FIND_LIBRARY
(
LUA_LIBRARY
NAMES
luajit
-
5.1
HINTS
$
ENV
{
LUA_DIR
}
PATH_SUFFIXES
lib64 lib
PATHS
~/
Library
/
Frameworks
/
Library
/
Frameworks
/
sw
/
opt
/
local
/
opt
/
csw
/
opt
)
IF
(
LUA_INCLUDE_DIR AND EXISTS
"${LUA_INCLUDE_DIR}/luajit.h"
)
FILE
(
STRINGS
"${LUA_INCLUDE_DIR}/luajit.h"
lua_version_str
REGEX
"^#define[
\t
]+LUA_RELEASE[
\t
]+
\"
LuaJIT .+
\"
"
)
STRING
(
REGEX REPLACE
"^#define[
\t
]+LUA_RELEASE[
\t
]+
\"
LuaJIT ([^
\"
]+)
\"
.*"
"
\\
1"
LUA_VERSION_STRING
"${lua_version_str}"
)
UNSET
(
lua_version_str
)
ENDIF
()
INCLUDE
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments and set LUAJIT_FOUND to TRUE if
# all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
LuaJit
REQUIRED_VARS LUA_LIBRARY LUA_INCLUDE_DIR
VERSION_VAR LUA_VERSION_STRING
)
MARK_AS_ADVANCED
(
LUA_INCLUDE_DIR LUA_LIBRARY LUA_MATH_LIBRARY
)