From e1fbacff77a60698ee292f32152209fb11f3ce09 Mon Sep 17 00:00:00 2001 From: Julien Louis Date: Fri, 4 Jul 2008 16:47:47 +0200 Subject: Fix Lua detection on FreeBSD (and probably other *BSD) Signed-off-by: Julien Louis --- cmake/FindLua.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmake/FindLua.cmake') diff --git a/cmake/FindLua.cmake b/cmake/FindLua.cmake index d68ce91de..f9e908504 100644 --- a/cmake/FindLua.cmake +++ b/cmake/FindLua.cmake @@ -39,6 +39,7 @@ FIND_PATH( FIND_LIBRARY( LUA51_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib + PATH_SUFFIXES lua51 lua5.1 lua-5.1 ) IF(LUA51_INCLUDE_PATH AND LUA51_LIBRARY) @@ -56,11 +57,13 @@ ELSE(LUA51_INCLUDE_PATH AND LUA51_LIBRARY) FIND_LIBRARY( LUA50_LIBRARY NAMES lua50 lua5.0 lua-5.0 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib + PATH_SUFFIXES lua50 lua5.0 lua-5.0 lua ) FIND_LIBRARY( - LUALIB50_LIBRARY NAMES lualib50 lualib5.0 lualib-5.0 lualib - PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib + LUALIB50_LIBRARY NAMES lualib50 lualib5.0 lualib-5.0 lualib + PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib + PATH_SUFFIXES lua50 lua5.0 lua-5.0 lua ) IF(LUA50_INCLUDE_PATH AND LUA50_LIBRARY AND LUALIB50_LIBRARY) -- cgit v1.2.3