From e51ecbd59135d3c5a8124de22cdca10ae51beaed 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 --- modules/FindTDE.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/FindTDE.cmake b/modules/FindTDE.cmake index 269bec3..e091e62 100644 --- a/modules/FindTDE.cmake +++ b/modules/FindTDE.cmake @@ -102,4 +102,6 @@ if( NOT TDE_FOUND ) endif( NOT TDE_FOUND ) -include( "${TDE_CMAKE_DIR}/tdelibs.cmake" ) +if( NOT TARGET tdecore-shared ) + include( "${TDE_CMAKE_DIR}/tdelibs.cmake" ) +endif()