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 I'm still confused. We shouldn't be looking for any paths at build time. This should be done at run time. Now, we can check the local directory that kernelshark lives in. That is, if we are running from a fresh build, at start up, we can look at `pwd`/../lib | `pwd`/../../plugins and see if those directories exist at run time. And if they do, we can use them (as we would assume that the exec is running from a local source tree). I really don't want any build artifacts in the executable. This will mean that you need to do special arrangements to build kernelshark and then move it to another machine. -- Steve > > Suggested-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> > Signed-off-by: Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> >