summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-06-12 02:48:12 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-06-12 02:56:45 +0200
commit3a8d9051e9b28f3b757d133577a64a7626760766 (patch)
treed78a0545ddd97f9102f51688918baf5b2fbbfcb9
parent1236eeac26cd75f3531cbf18b07afb1f660871c1 (diff)
downloadtdegraphics-3a8d9051e9b28f3b757d133577a64a7626760766.tar.gz
tdegraphics-3a8d9051e9b28f3b757d133577a64a7626760766.zip
Fix GLU detection on old distros (no pkgconfig file)
Thanks to Francois Andriot for the patch! (cherry picked from commit 2e575fef2bac4fb7b7a20d8864abb6665bf4ef19)
-rw-r--r--kpovmodeler/ConfigureChecks.cmake6
1 files changed, 5 insertions, 1 deletions
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( )