Skip to content
Snippets Groups Projects
  • Oliver Freyermuth's avatar
    6d16cb3e
    FindPostgreSQL.cmake: Add PATH_SUFFIX for searching. · 6d16cb3e
    Oliver Freyermuth authored
    This slightly changes lookup order: Namely, the system-folder "/usr/include/postgresql"
    is now preferred over "/usr/include/" even if both container libpq-fe.h.
    This finds the correct path on a standard Gentoo installation, where "/usr/include/postgresql"
    is a symlink to the folder with all include-files for the user-selected postgresql-version,
    while "/usr/include/libpq-fe.h" is a single symlink provided for backwards-compatibility.
    
    Since ROOT uses also e.g. "pg_config.h", selecting "/usr/include/" over "/usr/include/postgresql"
    leads to failure on Gentoo.
    6d16cb3e
    History
    FindPostgreSQL.cmake: Add PATH_SUFFIX for searching.
    Oliver Freyermuth authored
    This slightly changes lookup order: Namely, the system-folder "/usr/include/postgresql"
    is now preferred over "/usr/include/" even if both container libpq-fe.h.
    This finds the correct path on a standard Gentoo installation, where "/usr/include/postgresql"
    is a symlink to the folder with all include-files for the user-selected postgresql-version,
    while "/usr/include/libpq-fe.h" is a single symlink provided for backwards-compatibility.
    
    Since ROOT uses also e.g. "pg_config.h", selecting "/usr/include/" over "/usr/include/postgresql"
    leads to failure on Gentoo.