From Eric Wing, added ${MATH_LIB} to osg CMakeLists.txt and definition of this to m under unix
This commit is contained in:
parent
ebd04bbbbf
commit
6eee949142
@ -60,6 +60,8 @@ IF(UNIX)
|
||||
# Not sure what this will do on Cygwin and Msys
|
||||
# Also, remember OS X X11 is a user installed option so it may not exist.
|
||||
FIND_PACKAGE(X11)
|
||||
# Some Unicies need explicit linkage to the Math library or the build fails.
|
||||
FIND_LIBRARY(MATH_LIBRARY m)
|
||||
ENDIF(UNIX)
|
||||
|
||||
# Make the headers visible to everything
|
||||
@ -108,8 +110,8 @@ ENDIF(WIN32)
|
||||
|
||||
# Common to all platforms:
|
||||
FIND_PACKAGE(FreeType)
|
||||
|
||||
# Common to all platforms:
|
||||
FIND_PACKAGE(GLUT)
|
||||
FIND_PACKAGE(SDL)
|
||||
FIND_PACKAGE(Inventor)
|
||||
|
||||
# Platform specific:
|
||||
|
@ -293,6 +293,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
TARGET_LINK_LIBRARIES(${LIB_NAME}
|
||||
${OPENTHREADS_LIBRARY}
|
||||
${OPENGL_LIBRARIES}
|
||||
${MATH_LIBRARY}
|
||||
)
|
||||
|
||||
INCLUDE(ModuleInstall OPTIONAL)
|
||||
|
Loading…
Reference in New Issue
Block a user