aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2022-01-13 14:43:22 +0200
committerYordan Karadzhov (VMware) <y.karadz@gmail.com>2022-01-14 11:25:16 +0200
commitcb4ed5ebe5fd64d27d45140200d2aa5af0bc932f (patch)
tree7decd7cb76a00e1e46be60a4b1c069b564965beb
parentbec544e545b311bea169d97783554841c845e8f1 (diff)
downloadkernel-shark-cb4ed5ebe5fd64d27d45140200d2aa5af0bc932f.tar.gz
kernel-shark: Use cmake imported targets instead of variables
Using cmake imported targets instead of package variables is recommended way to define package dependencies. The GLUT_LIBRARY cmake variable was renamed in cmake 3.22.1, which breaks the Kernel Shark build with the latest cmake. Reported-by: Michal Sojka <michal.sojka@cvut.cz> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index babb9c1f..9e0b4ae2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -59,8 +59,8 @@ if (OPENGL_FOUND)
KsPlugins.cpp)
target_link_libraries(kshark-plot kshark
- ${GLUT_LIBRARY}
- ${OPENGL_LIBRARIES})
+ GLUT::GLUT
+ OpenGL::GLU)
set_target_properties(kshark-plot PROPERTIES SUFFIX ".so.${KS_VERSION_STRING}")
install(TARGETS kshark-plot