From f75eb058f15114d636c188b560efa795c9269420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 6 Mar 2020 02:33:52 +0100 Subject: cmake: Check for the presence of PostgreSQL client components only. Show database detection results. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 11f6dec02f0c065e739ecbe1016753d475eee22b) --- ConfigureChecks.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 82358c61..422de8c9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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." ) -- cgit v1.2.1