kml.cmake 678 Bytes
Newer Older
1
add_external_project(kml
2 3 4 5
  # kml has problems with newer gcc compilers with not including unistd.h
  PATCH_COMMAND ${CMAKE_COMMAND} -E copy_if_different
                ${SuperBuild_PROJECTS_DIR}/patches/kml.src.kml.base.file_posix.cc
                <SOURCE_DIR>/src/kml/base/file_posix.cc
6 7 8
  CMAKE_ARGS
    -DBUILD_SHARED_LIBS=OFF
  )
Ben Boeckel's avatar
Ben Boeckel committed
9 10 11 12 13 14 15 16 17 18

if (WIN32)
  # Patch for MSVC2010+
  add_external_project_step(kml-patch-util-header
    COMMAND ${CMAKE_COMMAND} -E copy_if_different
                              ${SuperBuild_PROJECTS_DIR}/patches/kml.src.kml.base.util.h
                              <SOURCE_DIR>/src/kml/base/util.h
    DEPENDEES configure
    DEPENDERS build)
endif ()