diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 78b3a85f6e668cc317231dfae0a2ec804a2a3481..6b23698204422d157f17694bb0fc2d19cbf81e6b 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -2,4 +2,4 @@ cmake_minimum_required (VERSION 2.8)
 
 OTB_CREATE_APPLICATION(NAME           TimeSeriesStats
                        SOURCES        otbTimeSeriesStats.cxx
-                       LINK_LIBRARIES OTBCommon)
\ No newline at end of file
+                       LINK_LIBRARIES ${${otb-module}_LIBRARIES})