[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)

Rolf Eike Beer notifications at github.com
Sat Oct 17 17:13:18 UTC 2015


> +
> +CHECK_TYPE_SIZE("off_t" SIZEOF_OFF_T)
> +
> +if (NOT WIN32 AND NOT APPLE AND NOT HAVE_LSEEK64 AND NOT SIZEOF_OFF_T EQUAL 8)
> +  message(FATAL_ERROR "Flat nodes cache requires a 64 bit capable seek")
> +endif()
> +
> +#############################################################
> +# Find necessary libraries
> +#############################################################
> +
> +if (NOT EXTERNAL_LIBOSMIUM)
> +  set(OSMIUM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/contrib/libosmium")
> +endif()
> +
> +include_directories(${CMAKE_SOURCE_DIR})

That will cause problems if anyone else chooses to have osm2pgsql build as part of a larger CMake project, then this directory may end up being not the top level directory. Use

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460/files#r42311469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151017/3f710731/attachment.html>


More information about the Tile-serving mailing list