diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-07-08 19:46:45 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-07-08 23:59:06 +0200 |
commit | 866f96c1f45c0d8302267c3bc3b286369cf9dcfe (patch) | |
tree | 41a55555919c666e03e7423b1a0a61fdafb58061 /kpovmodeler/ConfigureChecks.cmake | |
parent | d19460fd6eae693832e4c5160aa2071bf71062f6 (diff) | |
download | tdegraphics-866f96c1f45c0d8302267c3bc3b286369cf9dcfe.tar.gz tdegraphics-866f96c1f45c0d8302267c3bc3b286369cf9dcfe.zip |
Use FindOpenGL instead of pkg_search_module( GLU ).
This resolves FTBFS on FreeBSD 13.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kpovmodeler/ConfigureChecks.cmake')
-rw-r--r-- | kpovmodeler/ConfigureChecks.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kpovmodeler/ConfigureChecks.cmake b/kpovmodeler/ConfigureChecks.cmake index f4fdd1c0..a55045d4 100644 --- a/kpovmodeler/ConfigureChecks.cmake +++ b/kpovmodeler/ConfigureChecks.cmake @@ -10,13 +10,14 @@ ################################################# # glu -pkg_search_module( GLU glu ) -if( NOT GLU_FOUND ) +set( OpenGL_GL_PREFERENCE LEGACY ) +find_package( OpenGL ) +if( NOT OPENGL_FOUND ) 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" ) + tde_message_fatal( "OpenGL (glu) is required, but was not found on your system" ) endif ( ) - set( GLU_LIBRARIES "-lGL -lGLU" ) + set( OPENGL_LIBRARIES "-lGL -lGLU" ) endif( ) |