From a4fd72ac1f11b1b7fee63f1e061430625f883d5c Mon Sep 17 00:00:00 2001 From: jamesaxl Date: Sat, 14 Jan 2017 15:55:35 +0300 Subject: [PATCH] postgresql: /usr/include/libpq-fe.h --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9346b23..88191ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,12 @@ check_include_file_cxx(postgresql/libpq-fe.h HAS_POSTGRES) if (HAS_POSTGRES) add_definitions(-DHAS_POSTGRES) else() - message("No libpq-fe.h file found. Postgres driver disabled") + check_include_file_cxx(libpq-fe.h HAS_POSTGRES) + if (HAS_POSTGRES) + add_definitions(-DHAS_POSTGRES) + else() + message("No libpq-fe.h file found. Postgres driver disabled") + endif() endif()