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.
This commit is contained in:
parent
3d2e6a0687
commit
50bfedf391
|
@ -54,7 +54,7 @@ find_library(LUA_LIBRARY
|
||||||
|
|
||||||
if(LUA_LIBRARY)
|
if(LUA_LIBRARY)
|
||||||
# include the math library for Unix
|
# 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)
|
find_library(LUA_MATH_LIBRARY m)
|
||||||
set( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
|
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
|
# For Windows and Mac, don't need to explicitly include the math library
|
||||||
|
|
Loading…
Reference in New Issue