From 4f4c0235a47e263dec6fc03e78a917d54756ecd8 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 5 Mar 2016 18:43:25 +0100 Subject: [PATCH] Improved Luabind CMake module, fixes #262 and fixes #263 --- code/CMakeModules/FindLuabind.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/CMakeModules/FindLuabind.cmake b/code/CMakeModules/FindLuabind.cmake index 4219c56ed..64fd5e1cf 100644 --- a/code/CMakeModules/FindLuabind.cmake +++ b/code/CMakeModules/FindLuabind.cmake @@ -13,7 +13,7 @@ MACRO(FIND_CORRECT_LUA_VERSION) SET(LUA53_LIBRARIES liblua5.3 liblua-5.3 liblua.so.5.3) FOREACH(_LIB ${LUA53_LIBRARIES}) - CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE LUA53_LIBRARY LUALIB_FOUND) + CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE _LIB LUALIB_FOUND) IF(LUALIB_FOUND) MESSAGE(STATUS "Luabind is using Lua 5.3") FIND_PACKAGE(Lua53 REQUIRED) @@ -26,7 +26,7 @@ MACRO(FIND_CORRECT_LUA_VERSION) SET(LUA52_LIBRARIES liblua5.2 liblua-5.2 liblua.so.5.2) FOREACH(_LIB ${LUA52_LIBRARIES}) - CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE LUA52_LIBRARY LUALIB_FOUND) + CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE _LIB LUALIB_FOUND) IF(LUALIB_FOUND) MESSAGE(STATUS "Luabind is using Lua 5.2") FIND_PACKAGE(Lua52 REQUIRED) @@ -40,7 +40,7 @@ MACRO(FIND_CORRECT_LUA_VERSION) SET(LUA51_LIBRARIES liblua5.1 liblua-5.1 liblua.so.5.1) FOREACH(_LIB ${LUA51_LIBRARIES}) - CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE LUA51_LIBRARY LUALIB_FOUND) + CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE _LIB LUALIB_FOUND) IF(LUALIB_FOUND) MESSAGE(STATUS "Luabind is using Lua 5.1") FIND_PACKAGE(Lua51 REQUIRED) @@ -54,7 +54,7 @@ MACRO(FIND_CORRECT_LUA_VERSION) SET(LUA50_LIBRARIES liblua5.0 liblua-5.0 liblua.so.5.0) FOREACH(_LIB ${LUA50_LIBRARIES}) - CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE LUA50_LIBRARY LUALIB_FOUND) + CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE _LIB LUALIB_FOUND) IF(LUALIB_FOUND) MESSAGE(STATUS "Luabind is using Lua 5.0") FIND_PACKAGE(Lua50 REQUIRED)