On Wed, 13 Mar 2019 17:22:18 +0200 Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> wrote: > The CMAKE build system of KernelShark performs automated search for > the trace-cmd libraries, headers and executable before building the > GUI. The new order of the list of directories to search in is the > following: > > 1. ${TRACE_CMD}/ ($TRACE_CMD is an environment variable) > > 2. CMAKE_SOURCE_DIR/../ > > 3. Platform / system specific locations > For system installs (especially when trace-cmd and trace-cmd are separate packages), it's nicer to have trace-cmd install a pkgconfig file. Then the kernelshark can cmake use pkgconfig for getting the build options to find the headers, libraries, and binaries. See https://people.freedesktop.org/~dbn/pkg-config-guide.html for documentation on pkgconfig and pkgconfig files.
![]() |