Skip to content
  • Tamar Kranenburg's avatar
    FindPostgreSQL: Search some more common packaging locations · d4fd30d8
    Tamar Kranenburg authored and Brad King's avatar Brad King committed
    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).
    d4fd30d8