From 954af801d5c4cabd4e6376ee77bca5711c178762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 28 May 2020 02:50:00 +0200 Subject: [PATCH] FindTDE: Conditional import of exported tdelibs targets. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prevents multiple attempts to import exported tdelibs targets, which would cause a collision if find_package( TDE ) is called repeatedly for some reason. Signed-off-by: Slávek Banko (cherry picked from commit e51ecbd59135d3c5a8124de22cdca10ae51beaed) --- modules/FindTDE.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/FindTDE.cmake b/modules/FindTDE.cmake index 569e1ce..52be6c3 100644 --- a/modules/FindTDE.cmake +++ b/modules/FindTDE.cmake @@ -95,4 +95,6 @@ if( NOT TDE_FOUND ) endif( NOT TDE_FOUND ) -include( "${TDE_CMAKE_DIR}/kdelibs.cmake" ) +if( NOT TARGET kdecore-shared ) + include( "${TDE_CMAKE_DIR}/kdelibs.cmake" ) +endif()