[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)
Rolf Eike Beer
notifications at github.com
Sat Oct 17 12:48:23 UTC 2015
> +
> +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
> +
> +SET(DATA_DIR \".\")
> +
> +OPTION(TEST_BUILD "Build with tests and strict options" OFF)
> +
> +if (NOT WIN32 AND NOT APPLE)
> + # No need for this path, just a workaround to make cmake check pass on all systems
> + set(PostgreSQL_TYPE_INCLUDE_DIR /usr/include)
> +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)
> +
> +if ("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
Remove the dereference of the variables, this can cause trouble if the content inside any of these variables is the name of another variable. Just use
if (PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460/files#r42308950
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151017/df3edec5/attachment-0001.html>
More information about the Tile-serving
mailing list