* [PATCH] kernel-shark: Use cmake imported targets instead of variables
@ 2022-01-12 15:38 Tzvetomir Stoyanov (VMware)
2022-01-13 10:59 ` Yordan Karadzhov
0 siblings, 1 reply; 2+ messages in thread
From: Tzvetomir Stoyanov (VMware) @ 2022-01-12 15:38 UTC (permalink / raw)
To: y.karadz; +Cc: linux-trace-devel
Using cmake imported targets instead of package variables is
recommended way to define package dependencies.
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
src/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index babb9c1..9e0b4ae 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
--
2.33.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel-shark: Use cmake imported targets instead of variables
2022-01-12 15:38 [PATCH] kernel-shark: Use cmake imported targets instead of variables Tzvetomir Stoyanov (VMware)
@ 2022-01-13 10:59 ` Yordan Karadzhov
0 siblings, 0 replies; 2+ messages in thread
From: Yordan Karadzhov @ 2022-01-13 10:59 UTC (permalink / raw)
To: Tzvetomir Stoyanov (VMware), Michal Sojka; +Cc: linux-trace-devel
On 12.01.22 г. 17:38 ч., Tzvetomir Stoyanov (VMware) wrote:
> Using cmake imported targets instead of package variables is
> recommended way to define package dependencies.
>
Hi Ceco,
Please add to the commit message an explanation, clarifying that this patch actually fixes a build failure.
You may take as example the message of the patch sent by Michal
https://lore.kernel.org/all/20220113004559.1624414-1-michal.sojka@cvut.cz/
Michal and Ceco,
I will be happy to see this patch signed by both of you.
thanks,
Yordan
> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
> ---
> src/CMakeLists.txt | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
> index babb9c1..9e0b4ae 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-13 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-12 15:38 [PATCH] kernel-shark: Use cmake imported targets instead of variables Tzvetomir Stoyanov (VMware)
2022-01-13 10:59 ` Yordan Karadzhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).