summaryrefslogtreecommitdiffstats
path: root/Modules/FindLua51.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-01-07 22:26:18 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2013-01-07 22:26:18 (GMT)
commit50bfedf391a078e628bf1259f819da42dea1cde0 (patch)
tree5a063e4ff4571fffae6efd9814f39a4f1a343fd8 /Modules/FindLua51.cmake
parent3d2e6a06874603ebe6152045c34de9147a0c11dc (diff)
downloadCMake-50bfedf391a078e628bf1259f819da42dea1cde0.zip
CMake-50bfedf391a078e628bf1259f819da42dea1cde0.tar.gz
CMake-50bfedf391a078e628bf1259f819da42dea1cde0.tar.bz2
FindLua51: do not try to link libm on BeOS
This includes Haiku, which currently is treated as BeOS. The ComplexOneConfig test already knew about this.
Diffstat (limited to 'Modules/FindLua51.cmake')
-rw-r--r--Modules/FindLua51.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindLua51.cmake b/Modules/FindLua51.cmake
index 2d7ed3d..a2bf0c0 100644
--- a/Modules/FindLua51.cmake
+++ b/Modules/FindLua51.cmake
@@ -54,7 +54,7 @@ find_library(LUA_LIBRARY
if(LUA_LIBRARY)
# include the math library for Unix
- if(UNIX AND NOT APPLE)
+ if(UNIX AND NOT APPLE AND NOT BEOS)
find_library(LUA_MATH_LIBRARY m)
set( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
# For Windows and Mac, don't need to explicitly include the math library