summaryrefslogtreecommitdiff
path: root/cmake/FindLua.cmake
diff options
context:
space:
mode:
authorJulien Louis <ptitlouis@sysif.net>2008-07-04 16:47:47 +0200
committerJulien Louis <ptitlouis@sysif.net>2008-07-04 16:47:47 +0200
commite1fbacff77a60698ee292f32152209fb11f3ce09 (patch)
treea16d551fa632541c70817d7ec4440dc9d739c37a /cmake/FindLua.cmake
parenta34e9557cc1febf1ad924bea7aee72ebf7f23343 (diff)
downloadweechat-e1fbacff77a60698ee292f32152209fb11f3ce09.zip
Fix Lua detection on FreeBSD (and probably other *BSD)
Signed-off-by: Julien Louis <ptitlouis@sysif.net>
Diffstat (limited to 'cmake/FindLua.cmake')
-rw-r--r--cmake/FindLua.cmake7
1 files changed, 5 insertions, 2 deletions
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)