Fix GLU detection on old distros (no pkgconfig file)

Thanks to Francois Andriot for the patch!
pull/1/head
Slávek Banko 13 years ago
parent bc0284089b
commit 2e575fef2b

@ -12,7 +12,11 @@
# glu # glu
pkg_search_module( GLU glu ) pkg_search_module( GLU glu )
if( NOT GLU_FOUND ) if( NOT GLU_FOUND )
tde_message_fatal( "glu is required, but was not found on your system" ) check_include_file ( GL/glu.h HAVE_GLU )
if( NOT HAVE_GLU )
tde_message_fatal( "glu is required, but was not found on your system" )
endif ( )
set( GLU_LIBRARIES "-lGL -lGLU" )
endif( ) endif( )

Loading…
Cancel
Save