From f49ad59af0fb02cb29968960cb6a380649dc07c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 18 Jun 2020 18:38:56 +0200 Subject: [PATCH] kbugbuster: Build only the PIC variant of the static backend library. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should resolve the occasional FTBFS caused by double generation of the same MOC files. Signed-off-by: Slávek Banko --- kbugbuster/CMakeLists.txt | 2 +- kbugbuster/backend/CMakeLists.txt | 8 +------- kbugbuster/tderesources/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/kbugbuster/CMakeLists.txt b/kbugbuster/CMakeLists.txt index 6f71829d..a63fbcb5 100644 --- a/kbugbuster/CMakeLists.txt +++ b/kbugbuster/CMakeLists.txt @@ -38,7 +38,7 @@ install( FILES kbugbuster.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) tde_add_executable( kbugbuster SOURCES main.cpp LINK - kbbmainwindow-static kbbbackend_nopic-static + kbbmainwindow-static kbbbackend-static tdeutils-shared tdeio-shared tdehtml-shared DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/kbugbuster/backend/CMakeLists.txt b/kbugbuster/backend/CMakeLists.txt index 64b8ca6b..cb3b83c2 100644 --- a/kbugbuster/backend/CMakeLists.txt +++ b/kbugbuster/backend/CMakeLists.txt @@ -26,12 +26,6 @@ set( SRCS rdfprocessor.cpp htmlparser.cpp kbbprefs.cpp ) -tde_add_library( kbbbackend_nopic STATIC AUTOMOC +tde_add_library( kbbbackend STATIC_PIC AUTOMOC SOURCES ${SRCS} ) - -if( WITH_KCAL ) - tde_add_library( kbbbackend_pic STATIC_PIC AUTOMOC - SOURCES ${SRCS} - ) -endif( ) diff --git a/kbugbuster/tderesources/CMakeLists.txt b/kbugbuster/tderesources/CMakeLists.txt index 53b47ad8..c3008292 100644 --- a/kbugbuster/tderesources/CMakeLists.txt +++ b/kbugbuster/tderesources/CMakeLists.txt @@ -38,6 +38,6 @@ tde_add_kpart( kcal_bugzilla AUTOMOC SOURCES kcalresource.cpp kcalresourceconfig.cpp kcalresource_plugin.cpp resourceprefs.kcfgc - LINK kbbbackend_pic-static tdecore-shared tdeio-shared tdeabc kcal tderesources + LINK kbbbackend-static tdecore-shared tdeio-shared tdeabc kcal tderesources DESTINATION ${PLUGIN_INSTALL_DIR} )