diff --git a/CMake/OTBApplicationMacros.cmake b/CMake/OTBApplicationMacros.cmake index c4b4fc44b71cee0264fc632f710f78270ef810ae..6e735760fc8e5dadc0bc0ff48f95a0dd3ccddb4f 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()