FindPostgreSQL: Search some more common packaging locations
Use PATH_SUFFIXES to search more common packaging locations. On Windows, we can use suffixes to search in the standard Program Files locations without hard-coding the C:/ path. On Ubuntu/Debian, starting with PostgreSQL 9.3 the header file pg_type.h is moved to a separate package (from libpq-dev to postgresql-server-dev) and consequently the file pg_type.h is moved to a new location: /usr/include/postgresql/<version>/server/catalog/pg_type.h While at it, use separate PATH_SUFFIXES variables for library, type and include (this is merely an optimization).
Loading
-
Mentioned in commit brad.king/cmake@3bcd2f53
-
mentioned in merge request !365 (merged)
-
mentioned in issue #17223 (closed)
Please register or sign in to comment