Mercurial > hg > orthanc-databases
changeset 104:0a713ffdf842
fix build on Ubuntu 14.04
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Jan 2019 14:48:27 +0100 |
parents | 9263b3de37ed |
children | eefbcee7bd78 |
files | Resources/CMake/PostgreSQLConfiguration.cmake |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/PostgreSQLConfiguration.cmake Tue Jan 22 13:14:52 2019 +0000 +++ b/Resources/CMake/PostgreSQLConfiguration.cmake Tue Jan 22 14:48:27 2019 +0100 @@ -376,6 +376,18 @@ source_group(ThirdParty\\PostgreSQL REGULAR_EXPRESSION ${LIBPQ_SOURCES_DIR}/.*) else() + set(PostgreSQL_ADDITIONAL_VERSIONS + "11" "10" "9.6" "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" "8.3" "8.2" "8.1" "8.0") + if (NOT WIN32) + foreach (suffix ${PostgreSQL_ADDITIONAL_VERSIONS}) + list(APPEND PostgreSQL_ADDITIONAL_SEARCH_PATHS + "/usr/include/postgresql/${suffix}" + "/usr/include/postgresql/${suffix}/server" + "/usr/local/include/postgresql/${suffix}" + ) + endforeach() + endif() + include(FindPostgreSQL) include_directories( ${PostgreSQL_INCLUDE_DIR}