From a24aef4b2cbd414d22d6863af44e04e7385d1323 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Tue, 25 Jul 2017 15:29:42 -0700 Subject: [PATCH] Change cmake logic a bit after a fight about where to find postgres. --- cmake/FindPostgreSQL.cmake | 1 + configure.plugin | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/FindPostgreSQL.cmake b/cmake/FindPostgreSQL.cmake index 04c48d4..c3c3dbc 100644 --- a/cmake/FindPostgreSQL.cmake +++ b/cmake/FindPostgreSQL.cmake @@ -205,6 +205,7 @@ find_library(PostgreSQL_LIBRARY NAMES ${PostgreSQL_LIBRARY_TO_FIND} PATHS ${PostgreSQL_ROOT_DIRECTORIES} + ${PostgreSQL_LIBRARY_DIR} PATH_SUFFIXES lib ${PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES} diff --git a/configure.plugin b/configure.plugin index dc7fe2a..2d1d2e7 100644 --- a/configure.plugin +++ b/configure.plugin @@ -15,7 +15,6 @@ plugin_option() case "$1" in --with-postgresql=*) append_cache_entry PostgreSQL_ROOT PATH $optarg - append_cache_entry PostgreSQL_ROOT PATH $optarg/include return 0 ;; @@ -30,7 +29,6 @@ plugin_option() ;; --with-postgresql-lib=*) - append_cache_entry PostgreSQL_LIBRARY_DIR PATH $optarg append_cache_entry PostgreSQL_LIBRARY_DIR PATH $optarg return 0 ;;