diff --git a/CMakeLists.txt b/CMakeLists.txt index a40cb9f23..52630ef01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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: diff --git a/src/osg/CMakeLists.txt b/src/osg/CMakeLists.txt index b5bcb47bc..06cd7cf4b 100644 --- a/src/osg/CMakeLists.txt +++ b/src/osg/CMakeLists.txt @@ -293,6 +293,7 @@ ADD_LIBRARY(${LIB_NAME} TARGET_LINK_LIBRARIES(${LIB_NAME} ${OPENTHREADS_LIBRARY} ${OPENGL_LIBRARIES} + ${MATH_LIBRARY} ) INCLUDE(ModuleInstall OPTIONAL)