From c772a9bc2ba603d7bd96b716603f848f89d6e515 Mon Sep 17 00:00:00 2001
From: Gaetano Raffaele <raffaele.gaetano@cirad.fr>
Date: Wed, 4 Dec 2019 17:18:56 +0100
Subject: [PATCH] Update CMakeLists.txt to explicitly link dependent libraries
 (fix unresolved externals when compiling OTB 7).

---
 app/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 7a6fc62..970d28e 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -2,4 +2,4 @@ cmake_minimum_required (VERSION 2.8)
 
 OTB_CREATE_APPLICATION(NAME           LSGRM
                        SOURCES        otbLSGRM.cxx
-                       LINK_LIBRARIES OTBCommon OTBGRM)
+                       LINK_LIBRARIES ${${otb-module}_LIBRARIES} OTBGRM)
-- 
GitLab