Skip to content
Snippets Groups Projects
Commit deb1d08d authored by Michael Davis's avatar Michael Davis
Browse files

Updates Findpostgres.cmake to allow compilation with PostgreSQL 12

parent 7ccd6abc
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
cmake_minimum_required (VERSION 3.17)
find_package(Protobuf3 REQUIRED)
find_package(postgres REQUIRED)
include_directories (${ORACLE-INSTANTCLIENT_INCLUDE_DIRS} ${POSTGRES_INCLUDE_DIRS})
......
......@@ -19,12 +19,12 @@
find_path(POSTGRES_INCLUDE_DIRS
libpq-fe.h
PATHS /usr/include
PATHS /usr/include /usr/pgsql-12/include
NO_DEFAULT_PATH)
find_library(POSTGRES_LIBRARIES
NAME pq
PATHS /usr/lib64/
PATHS /usr/lib64/ /usr/pgsql-12/lib/
NO_DEFAULT_PATH)
message (STATUS "POSTGRES_INCLUDE_DIRS = ${POSTGRES_INCLUDE_DIRS}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment