diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-09-09 09:50:39 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-09-09 09:50:39 -0400 |
commit | 43d055eb7a1e24e863d598a234758c33745835db (patch) | |
tree | 1b5488fa743e6dad070d4a5fb5333082a8c9185b /Modules | |
parent | 3abb9e240d775178a6966d32e5f803faf56ae87c (diff) | |
download | cmake-43d055eb7a1e24e863d598a234758c33745835db.tar.gz |
Adding GLU to the OPENGL_LIBRARIES only if it is found.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenGL.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 026c214b41..4cb2709221 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -121,14 +121,16 @@ IF(OPENGL_INCLUDE_DIR) SET( OPENGL_XMESA_FOUND "NO" ) ENDIF(OPENGL_xmesa_INCLUDE_DIR) + SET( OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_LIBRARIES}) IF(OPENGL_glu_LIBRARY) SET( OPENGL_GLU_FOUND "YES" ) - ENDIF(OPENGL_glu_LIBRARY) + SET( OPENGL_LIBRARIES ${OPENGL_glu_LIBRARY} ${OPENGL_LIBRARIES} ) + ELSE(OPENGL_glu_LIBRARY) SET( OPENGL_GLU_FOUND "NO" ) ENDIF(OPENGL_glu_LIBRARY) SET( OPENGL_FOUND "YES" ) - SET( OPENGL_LIBRARIES ${OPENGL_glu_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_LIBRARIES}) + #The following deprecated settings are for backwards compatibility with CMake1.4 SET (OPENGL_LIBRARY ${OPENGL_LIBRARIES}) |