Browse Source

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.
Rolf Eike Beer 13 years ago
parent
commit
50bfedf391
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindLua51.cmake

+ 1 - 1
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