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

Rolf Eike Beer notifications at github.com
Sat Oct 17 12:53:31 UTC 2015


> +
> +if (NOT PostgreSQL_FOUND)
> +  message(FATAL_ERROR "Can not find PostgreSQL. Do not forget to install all postgresql-dev packages, including server-dev. Try using options like -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql/9.4/server/catalog on Ubuntu")
> +endif()
> +
> +find_package(Threads)
> +
> +if (NOT CMAKE_COMPILER_IS_GNUCC AND WIN32)
> +  find_path(GETOPT_INCLUDE_DIR getopt.h)
> +  find_library(GETOPT_LIBRARY NAMES wingetopt )
> +  if (GETOPT_INCLUDE_DIR AND GETOPT_LIBRARY)
> +    include_directories(${GETOPT_INCLUDE_DIR})
> +  endif()
> +endif()
> +
> +if (WIN32)

Simply move this below the set(LIBS) below and just append to the LIBS variable.

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


More information about the Tile-serving mailing list