Demos (master): egl/opengl: fixed linking of eglgears_* with libm

Chia-I Wu olv at kemper.freedesktop.org
Sat Jan 29 12:03:21 PST 2011


Module: Demos
Branch: master
Commit: d8f7d6bac9415581c02b18ebb462d3d9951fe5b4
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=d8f7d6bac9415581c02b18ebb462d3d9951fe5b4

Author: Jure Repinc <jlp at holodeck1.com>
Date:   Wed Jan 26 02:31:52 2011 +0100

egl/opengl: fixed linking of eglgears_* with libm

---

 src/egl/opengl/CMakeLists.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/egl/opengl/CMakeLists.txt b/src/egl/opengl/CMakeLists.txt
index ede9ec3..3a012e1 100644
--- a/src/egl/opengl/CMakeLists.txt
+++ b/src/egl/opengl/CMakeLists.txt
@@ -6,10 +6,10 @@ add_executable(eglinfo eglinfo.c)
 target_link_libraries(eglinfo ${EGL_egl_LIBRARY})
 
 add_executable(eglgears_screen eglgears.c)
-target_link_libraries(eglgears_screen ${EGL_egl_LIBRARY} eglut_screen)
+target_link_libraries(eglgears_screen ${EGL_egl_LIBRARY} eglut_screen m)
 
 if(X11_FOUND)
   add_executable(eglgears_x11 eglgears.c)
-  target_link_libraries(eglgears_x11 ${EGL_egl_LIBRARY} eglut_x11)
+  target_link_libraries(eglgears_x11 ${EGL_egl_LIBRARY} eglut_x11 m)
 endif(X11_FOUND)
 



More information about the mesa-commit mailing list