[Mesa-dev] [PATCH mesa-demos] cmake: fix egl/opengl compilation (needs -lm)

Chia-I Wu olvaffe at gmail.com
Sat Jan 29 13:50:29 PST 2011


On Sat, Jan 29, 2011 at 4:08 AM, Paulo Zanoni <pzanoni at mandriva.com> wrote:
>
> Signed-off-by: Paulo Zanoni <pzanoni at mandriva.com>
> ---
>
> My cmake-fu is not good. Maybe there are better ways to fix this. Suggestions
> are always welcome =D
Thanks for the patch.  I've committed a similar fix from Jure Repinc
(bug #33505).
>  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)
>
> --
> 1.7.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>



-- 
olv at LunarG.com


More information about the mesa-dev mailing list