cmake: Check for the presence of PostgreSQL client components only.

Show database detection results.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/15/head
Slávek Banko 5 years ago
parent bfb5b5a5b5
commit 11f6dec02f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -296,6 +296,9 @@ endif( )
set( MYSQL_INCLUDE_DIRS "${MYSQL_INCLUDE_DIRS}" CACHE INTERNAL "" FORCE )
set( MYSQL_LIBRARIES "${MYSQL_LIBRARIES}" CACHE INTERNAL "" FORCE )
message( STATUS " includes ${MYSQL_INCLUDE_DIRS} ")
message( STATUS " libraries ${MYSQL_LIBRARIES} ")
set( USE_MYSQL 1 )
tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${MYSQL_INCLUDE_DIRS} )
@ -340,8 +343,11 @@ endif( WITH_MYSQL )
if( WITH_POSTGRESQL )
##### check for PostgreSQL
message( STATUS "Check for PostgreSQL" )
find_package( PostgreSQL )
if( PostgreSQL_VERSION_STRING )
if( PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY )
message( STATUS " includes ${PostgreSQL_INCLUDE_DIR} ")
message( STATUS " library ${PostgreSQL_LIBRARY} ")
set( USE_POSTGRESQL 1 )
else()
tde_message_fatal( "Postgresql support is requested but Postgresql was not found on your system." )

Loading…
Cancel
Save