From: Thomas Klausner Date: Fri, 11 Sep 2009 12:58:49 +0000 (+0200) Subject: From David Sainty : X-Git-Tag: v1.46~9 X-Git-Url: https://repo.or.cz/w/glpng.git/commitdiff_plain/3f574b9aff2b6417bbf795e9338ab20853cdeeb1 From David Sainty : 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 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cb26d04..f58df8d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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")