diff options
author | Yordan Karadzhov (VMware) <y.karadz@gmail.com> | 2021-03-16 17:26:09 +0200 |
---|---|---|
committer | Yordan Karadzhov (VMware) <y.karadz@gmail.com> | 2021-03-22 17:20:23 +0200 |
commit | f50edf45a0584b4882a640219f142c36d378387f (patch) | |
tree | d6d23e687b9d483fdd613b3d341a2b07707d5b43 | |
parent | 47a7e9f4db8a9f168010b7bbf03c2a3000c51339 (diff) | |
download | kernel-shark-f50edf45a0584b4882a640219f142c36d378387f.tar.gz |
kernel-shark: Build the plugins together with the GUI.
There is no need the compile the plugins in the case when
not all third party dependencies are available and the
KernelShark GUI is not compiled. In fact this even causes
the build to fail because the plugins can include headers
from the third party packages.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b557eb7d..c6607919 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -142,9 +142,9 @@ if (Qt5Widgets_FOUND AND Qt5Network_FOUND AND TT_FONT_FILE) DESTINATION ${PKG_CONGIG_DIR} COMPONENT libkshark-devel) -endif (Qt5Widgets_FOUND AND Qt5Network_FOUND AND TT_FONT_FILE) + add_subdirectory(plugins) + set(PLUGINS ${PLUGINS} PARENT_SCOPE) -add_subdirectory(plugins) -set(PLUGINS ${PLUGINS} PARENT_SCOPE) + find_program(DO_AS_ROOT pkexec) -find_program(DO_AS_ROOT pkexec) +endif (Qt5Widgets_FOUND AND Qt5Network_FOUND AND TT_FONT_FILE) |