From 2e575fef2bac4fb7b7a20d8864abb6665bf4ef19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 12 Jun 2012 02:48:12 +0200 Subject: [PATCH] Fix GLU detection on old distros (no pkgconfig file) Thanks to Francois Andriot for the patch! --- kpovmodeler/ConfigureChecks.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kpovmodeler/ConfigureChecks.cmake b/kpovmodeler/ConfigureChecks.cmake index 3b325475..f4fdd1c0 100644 --- a/kpovmodeler/ConfigureChecks.cmake +++ b/kpovmodeler/ConfigureChecks.cmake @@ -12,7 +12,11 @@ # glu pkg_search_module( GLU glu ) 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( )