[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)
alex85k
notifications at github.com
Sat Oct 17 13:00:36 UTC 2015
> +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 build && cd build && cmake ..`")
> +endif()
> +
> +message(STATUS "Building osm2pgsql ${PACKAGE_VERSION}")
> +
> +if (NOT CMAKE_BUILD_TYPE)
> + set(CMAKE_BUILD_TYPE=Release)
> +endif()
> +
> +if ( MSVC )
> + add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -wd4996)
> + set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:30000000")
> +else()
> + add_definitions(-Wall)
> + add_definitions(-std=c++11)
Travis CI and many distros have 2.8, I had to downgrade intentionally.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460/files#r42309063
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151017/14cdf8d2/attachment-0001.html>
More information about the Tile-serving
mailing list