Commit 7ef1d289 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use imported target for GL libraries

This is more robust than using variables
parent 11609207
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmopengl\")
if(KCM_ENABLE_OPENGL)
include_directories( ${OPENGL_INCLUDE_DIR} ${OPENGL_GLU_INCLUDE_DIR} )
endif()
if(KCM_ENABLE_OPENGLES)
include_directories( ${OPENGLES_INCLUDE_DIR} )
endif()
......@@ -26,7 +22,7 @@ if (DL_LIBRARY)
endif()
if(KCM_ENABLE_OPENGL)
target_link_libraries(kcm_opengl ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
target_link_libraries(kcm_opengl OpenGL::GL OpenGL::GLU)
endif()
if(KCM_HAVE_EGL)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment