diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 7a6fc6249549a73ac9b4be62a146119783346f64..970d28e1ce5e3c0fae705c7816270674bcb30c5f 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)