cmake_modules/FindLua.cmake
author Wuzzy <Wuzzy2@mail.ru>
Thu, 03 Jan 2019 19:46:48 +0100
changeset 14514 5ac181cb2396
parent 12762 5134c07ce32c
permissions -rw-r--r--
Fix bee targeting fail across wrap world edge Previously, the bee always aimed for the light area, no matter where you actually put the target. It also got confused whenever it flew across the wrap world edge. How the bee works now: 1) The placed bee target is *not* recalculated when it was placed in the "gray" part of the wrap world edge. This allows for more fine-tuning. 1a) Place target in light area: bee aims for target light area 1b) Place target in gray area: bee aims for target, but flies to gray area first 2) Bee target is recalculated whenever bee passes the wrap world edge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9208
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     1
# Find liblua
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     2
#
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     3
# Once done this will define
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     4
#  LUA_FOUND - system has Lua
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     5
#  LUA_INCLUDE_DIR - the Lua include directory
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     6
#  LUA_LIBRARY - The library needed to use Lua
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     7
# Copyright (c) 2013, Vittorio Giovara <vittorio.giovara@gmail.com>
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     8
#
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
     9
# Distributed under the OSI-approved BSD License (the "License");
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    10
# see accompanying file Copyright.txt for details.
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    11
#
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    12
# This software is distributed WITHOUT ANY WARRANTY; without even the
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    13
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    14
# See the License for more information.
2924
908851e59958 Engine:
smxx
parents:
diff changeset
    15
9208
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    16
include(FindPackageHandleStandardArgs)
7050
91199321e916 fix building with lua (i think)
koda
parents: 7031
diff changeset
    17
9208
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    18
find_path(LUA_INCLUDE_DIR lua.h
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    19
                          PATHS /usr/include /usr/local/include /usr/pkg/include
10725
b01835e9339d Find lua 5.1 on fedora machines (taken from fedora hw git)
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10238
diff changeset
    20
                          PATH_SUFFIXES lua5.1 lua51 lua-5.1)
12762
5134c07ce32c one more pattern
nemo
parents: 10725
diff changeset
    21
find_library(LUA_LIBRARY NAMES liblua lua51 lua5.1 lua-5.1 lua
9208
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    22
                         PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib)
7050
91199321e916 fix building with lua (i think)
koda
parents: 7031
diff changeset
    23
9208
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    24
find_package_handle_standard_args(Lua DEFAULT_MSG LUA_LIBRARY LUA_INCLUDE_DIR)
acb2492288e5 heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now
koda
parents: 8075
diff changeset
    25
mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)
10238
7e20804db6a2 rolling back (most of) lua 5.2 compatibility patches. hopefully that will unbreak unC0Rr's lua issues for now.
sheepluva
parents: 10232
diff changeset
    26