From 1f5d66e776387f466f578613aa9f13f001b81e9e Mon Sep 17 00:00:00 2001
From: Jens Georg <jens.georg@desy.de>
Date: Fri, 24 Jul 2020 10:26:18 +0200
Subject: [PATCH] FindDOOCS: Force linking against libtinemt

This is a work-around for libDOOCSapi linking against it but expecting
/export/doocs/lib to be in the linker search path (not using rpath)

May be reverted once/if doocs fixes this
---
 cmake/Modules/FindDOOCS.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmake/Modules/FindDOOCS.cmake b/cmake/Modules/FindDOOCS.cmake
index df16523..f7ad971 100644
--- a/cmake/Modules/FindDOOCS.cmake
+++ b/cmake/Modules/FindDOOCS.cmake
@@ -73,6 +73,10 @@ include(FindPkgConfig)
 if(DEFINED DOOCS_DIR)
   set(ENV{PKG_CONFIG_PATH} $ENV{PKG_CONFIG_PATH}:${DOOCS_DIR}/pkgconfig)
 endif()
+
+# Work-around for missing rpath on libDOOCSClient - explicitly link against libtine
+list(APPEND DOOCS_FIND_COMPONENTS timemt)
+
 set(ENV{PKG_CONFIG_PATH} $ENV{PKG_CONFIG_PATH}:/export/doocs/lib/pkgconfig)
 message("Using PKG_CONFIG_PATH=$ENV{PKG_CONFIG_PATH}")
 pkg_check_modules(DOOCS REQUIRED ${DOOCS_FIND_COMPONENTS})
-- 
GitLab