diff options
author | Slávek Banko <[email protected]> | 2020-05-28 02:50:00 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-28 15:43:41 +0200 |
commit | e51ecbd59135d3c5a8124de22cdca10ae51beaed (patch) | |
tree | 8ef9c81de2dc69c9c2248402ea8801ea049d12d3 /modules/FindTDE.cmake | |
parent | f7a3d5c3e272cbb059f96b90a2555506c9a6b454 (diff) | |
download | tde-cmake-e51ecbd59135d3c5a8124de22cdca10ae51beaed.tar.gz tde-cmake-e51ecbd59135d3c5a8124de22cdca10ae51beaed.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 <[email protected]>
Diffstat (limited to 'modules/FindTDE.cmake')
-rw-r--r-- | modules/FindTDE.cmake | 4 |
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() |