From 010bffb8f09faf72d758f1d19e29043fef670f0b Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Tue, 3 Sep 2019 17:33:17 +0200
Subject: [PATCH] REFAC: OTBApplicationEngine should be already in the DEPENDS

---
 CMake/OTBApplicationMacros.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMake/OTBApplicationMacros.cmake b/CMake/OTBApplicationMacros.cmake
index c4b4fc44b7..6e735760fc 100644
--- a/CMake/OTBApplicationMacros.cmake
+++ b/CMake/OTBApplicationMacros.cmake
@@ -26,7 +26,7 @@ macro(otb_create_application)
    # Build the library as a MODULE (shared lib even if OTB is built statically)
    include_directories(${APPLICATION_INCLUDE_DIRS})
    add_library(${APPLICATION_TARGET_NAME} MODULE ${APPLICATION_SOURCES})
-   target_link_libraries(${APPLICATION_TARGET_NAME} OTBApplicationEngine ${APPLICATION_LINK_LIBRARIES})
+   target_link_libraries(${APPLICATION_TARGET_NAME} ${APPLICATION_LINK_LIBRARIES})
    if(otb-module)
      otb_module_target_label(${APPLICATION_TARGET_NAME})
    endif()
-- 
GitLab