diff options
author | Slávek Banko <[email protected]> | 2012-06-12 02:48:12 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-12 02:51:06 +0200 |
commit | 2e575fef2bac4fb7b7a20d8864abb6665bf4ef19 (patch) | |
tree | 01e156a619f289eea41e3222fd6f39f9a8ce9c9e /kpovmodeler | |
parent | bc0284089b95ebd58cfe7bc0f9a893df7383941f (diff) | |
download | tdegraphics-2e575fef2bac4fb7b7a20d8864abb6665bf4ef19.tar.gz tdegraphics-2e575fef2bac4fb7b7a20d8864abb6665bf4ef19.zip |
Fix GLU detection on old distros (no pkgconfig file)
Thanks to Francois Andriot for the patch!
Diffstat (limited to 'kpovmodeler')
-rw-r--r-- | kpovmodeler/ConfigureChecks.cmake | 6 |
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( ) |