diff --git a/CMake/ImportLibKML.cmake b/CMake/ImportLibKML.cmake index 114702d84cec8de6d3cf8da4c39750dcafdebe42..9b6e3e04b93af64224437f6c26ad1abd120a981b 100644 --- a/CMake/ImportLibKML.cmake +++ b/CMake/ImportLibKML.cmake @@ -5,6 +5,13 @@ if(LIBKML_FOUND) option(OTB_USE_EXTERNAL_LIBKML "Use external LibKML library." ON) else() option(OTB_USE_EXTERNAL_LIBKML "Use external LibKML library." OFF) + + #Known issue in OTB which does not compile with external ITK and internal libkml + #Bugs 896: http://bugs.orfeo-toolbox.org/view.php?id=896 + if (USE_EXTERNAL_ITK) + message(WARNING "There is a known issue which does not allow to use internal libKML with external ITK in OTB. You might consider using an external LibKML.") + endif() + set(LIBKML_LIBRARIES otbkml) message(STATUS "Using LibKML internal version") endif()