From 6fb04dcdfe3373e1ccc7715fec5925a8c50f7f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 30 Jan 2014 21:52:24 +0100 Subject: [PATCH] modules: work around GLUT_Xi_LIBRARY-related CMake errors on Ubuntu. These libraries are not needed for GlutApplication, thus we link only to GLUT_glut_LIBRARY now. Hopefully this won't break linking somewhere else. --- modules/FindMagnum.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index c742edceb..998911a3a 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -245,7 +245,7 @@ foreach(component ${Magnum_FIND_COMPONENTS}) if(${component} STREQUAL GlutApplication) find_package(GLUT) if(GLUT_FOUND) - set(_MAGNUM_${_COMPONENT}_LIBRARIES ${GLUT_LIBRARIES} ${_WINDOWCONTEXT_MAGNUM_LIBRARIES_DEPENDENCY}) + set(_MAGNUM_${_COMPONENT}_LIBRARIES ${GLUT_glut_LIBRARY} ${_WINDOWCONTEXT_MAGNUM_LIBRARIES_DEPENDENCY}) else() unset(MAGNUM_${_COMPONENT}_LIBRARY) endif()