From David Sainty <dsainty@NetBSD.org>:
authorThomas Klausner <tk@giga.or.at>
Fri, 11 Sep 2009 12:58:49 +0000 (11 14:58 +0200)
committerThomas Klausner <tk@giga.or.at>
Fri, 11 Sep 2009 12:58:49 +0000 (11 14:58 +0200)
The cmake utility recommends using OPENGL_gl_LIBRARY if GLU is not required.
This also fixes the build in some circumstances: if cmake finds an installed
libGLU the build will fail, because we don't buildlink it.

Ok Tomáš Chvátal, Miriam Ruiz

src/CMakeLists.txt

index cb26d04..f58df8d 100644 (file)
@@ -5,7 +5,7 @@
 INCLUDE_DIRECTORIES ( ${ZLIB_INCLUDE_DIR} ${PNG_INCLUDE_DIR}
                ${OPENGL_INCLUDE_DIR}  ${CMAKE_SOURCE_DIR}/include/ )
 LINK_LIBRARIES ( ${CMAKE_DL_LIBS} ${ZLIB_LIBRARIES} ${PNG_LIBRARY}
-               ${OPENGL_LIBRARIES} )
+               ${OPENGL_gl_LIBRARY} )
 SET ( SRCS ${APPNAME}.c
 )
 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")