|
|
@ -346,13 +346,24 @@ if( WITH_POSTGRESQL )
|
|
|
|
|
|
|
|
|
|
|
|
message( STATUS "Check for PostgreSQL" )
|
|
|
|
message( STATUS "Check for PostgreSQL" )
|
|
|
|
find_package( PostgreSQL )
|
|
|
|
find_package( PostgreSQL )
|
|
|
|
|
|
|
|
|
|
|
|
if( PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY )
|
|
|
|
if( PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY )
|
|
|
|
message( STATUS " includes ${PostgreSQL_INCLUDE_DIR} ")
|
|
|
|
message( STATUS " includes ${PostgreSQL_INCLUDE_DIR} ")
|
|
|
|
message( STATUS " library ${PostgreSQL_LIBRARY} ")
|
|
|
|
message( STATUS " library ${PostgreSQL_LIBRARY} ")
|
|
|
|
set( USE_POSTGRESQL 1 )
|
|
|
|
set( USE_POSTGRESQL 1 )
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
|
|
|
|
pkg_search_module( LIBPQ libpq )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( NOT LIBPQ_FOUND )
|
|
|
|
tde_message_fatal( "Postgresql support is requested but Postgresql was not found on your system." )
|
|
|
|
tde_message_fatal( "Postgresql support is requested but Postgresql was not found on your system." )
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set( PostgreSQL_INCLUDE_DIR "${LIBPQ_INCLUDE_DIRS}" )
|
|
|
|
|
|
|
|
set( PostgreSQL_LIBRARY "${LIBPQ_LIBRARIES}" )
|
|
|
|
|
|
|
|
set( PostgreSQL_LIBRARY_DIRS "${LIBPQ_LIBRARY_DIRS}" )
|
|
|
|
|
|
|
|
set( USE_POSTGRESQL 1 )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
endif( WITH_POSTGRESQL )
|
|
|
|
endif( WITH_POSTGRESQL )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|