From 3f574b9aff2b6417bbf795e9338ab20853cdeeb1 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 11 Sep 2009 14:58:49 +0200 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ok Tomáš Chvátal, Miriam Ruiz --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.11.4.GIT