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

alex85k notifications at github.com
Sat Oct 17 09:27:54 UTC 2015


> +OPTION(BUILD_TESTS "Build with tests" OFF)
> +
> +if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
> +  message(FATAL_ERROR "In-source builds are not allowed, please use a separate build directory like `mkdir biuld && cd build && cmake ..`")
> +endif()
> +
> +execute_process (COMMAND git describe OUTPUT_VARIABLE PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
> +
> +message(STATUS "Building osm2pgsql ${PACKAGE_VERSION}")
> +
> +if (NOT CMAKE_BUILD_TYPE)
> +  set(CMAKE_BUILD_TYPE=Release)
> +endif()
> +
> +# Just in case user installed RPMs from http://yum.postgresql.org/
> +list(APPEND PostgreSQL_ADDITIONAL_SEARCH_PATHS /usr/pgsql-9.3 /usr/pgsql-9.4)

Agree. It should be fixed in newest cmake but until now we'll need some workarounds.

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


More information about the Tile-serving mailing list