summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-28 02:50:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-28 15:43:41 +0200
commite51ecbd59135d3c5a8124de22cdca10ae51beaed (patch)
tree8ef9c81de2dc69c9c2248402ea8801ea049d12d3
parentf7a3d5c3e272cbb059f96b90a2555506c9a6b454 (diff)
downloadtde-cmake-e51ecbd5.tar.gz
tde-cmake-e51ecbd5.zip
FindTDE: Conditional import of exported tdelibs targets.
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 <slavek.banko@axis.cz>
-rw-r--r--modules/FindTDE.cmake4
1 files changed, 3 insertions, 1 deletions
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()