From 571ba5f7577522bbc6e82823db9eea02cf8c49fc Mon Sep 17 00:00:00 2001 From: Mikhail Kvyatkovskiy Date: Mon, 27 Feb 2012 15:29:05 +0400 Subject: [PATCH] cmake: bingo-postgres search paths updated --- bingo/postgres/CMakeLists.txt | 1 + common/cmake/FindPOSTGRES.cmake | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bingo/postgres/CMakeLists.txt b/bingo/postgres/CMakeLists.txt index 2a7e769c..244f55cd 100644 --- a/bingo/postgres/CMakeLists.txt +++ b/bingo/postgres/CMakeLists.txt @@ -9,6 +9,7 @@ find_package(POSTGRES) if (NOT POSTGRES_FOUND) message(FATAL_ERROR "Postgres not found!") endif() +message(STATUS "Postgres found at ${POSTGRES_INCLUDE_DIRS}") file(GLOB PG_AM_src src/pg_am/*.cpp src/pg_am/*.c) file(GLOB PG_AM_headers src/pg_am/*.h) diff --git a/common/cmake/FindPOSTGRES.cmake b/common/cmake/FindPOSTGRES.cmake index 257395af..b70b1773 100644 --- a/common/cmake/FindPOSTGRES.cmake +++ b/common/cmake/FindPOSTGRES.cmake @@ -12,8 +12,10 @@ FIND_PATH(POSTGRES_INCLUDE_DIRS pg_config.h /usr/include /usr/include/postgres /usr/include/postgresql + /usr/include/postgresql/$ENV{BINGO_PG_VERSION} /sw/include # Fink /opt/local/include # DarwinPorts + /opt/local/include/postgresql/$ENV{BINGO_PG_VERSION} /opt/csw/include # Blastwave /opt/include )