Skip to content
Snippets Groups Projects
Commit 7d34efe0 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-856: Fix LibKML import script and enhance documentation

parent 7a56d729
No related branches found
No related tags found
No related merge requests found
......@@ -5,15 +5,22 @@ if(LIBKML_FOUND)
option(OTB_USE_EXTERNAL_LIBKML "Use external LibKML library." ON)
else()
option(OTB_USE_EXTERNAL_LIBKML "Use external LibKML library." OFF)
set(LIBKML_LIBRARIES otbkml)
message(STATUS "Using LibKML internal version")
endif()
mark_as_advanced(OTB_USE_EXTERNAL_LIBKML)
# Known issue in OTB which does not compile with external ITK and internal libkml
if (OTB_USE_EXTERNAL_ITK AND NOT OTB_USE_EXTERNAL_LIBKML)
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. "
"See http://bugs.orfeo-toolbox.org/view.php?id=896 for details")
if(OTB_USE_EXTERNAL_LIBKML)
if(NOT LIBKML_FOUND)
message(FATAL_ERROR "Can't build OTB without LibKML. Instal it "
"on your system, or disable the option "
"OTB_USE_EXTERNAL_LIBKML to use internal one")
endif()
else()
set(LIBKML_LIBRARIES otbkml)
message(STATUS " Using LibKML internal version")
# Known issue in OTB which does not compile with external ITK and internal libkml
if (OTB_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. "
"See http://bugs.orfeo-toolbox.org/view.php?id=896 for details")
endif()
endif()
mark_as_advanced(OTB_USE_EXTERNAL_LIBKML)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment