summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-06 02:33:52 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-03-06 02:34:09 +0100
commitf75eb058f15114d636c188b560efa795c9269420 (patch)
treefbe0520d3fe77575530044449ace1dee59de38f7 /ConfigureChecks.cmake
parent7c163aa4555a54de0a5689891f25fdb7cff20db5 (diff)
downloadamarok-f75eb058f15114d636c188b560efa795c9269420.tar.gz
amarok-f75eb058f15114d636c188b560efa795c9269420.zip
cmake: Check for the presence of PostgreSQL client components only.
Show database detection results. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 11f6dec02f0c065e739ecbe1016753d475eee22b)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake8
1 files changed, 7 insertions, 1 deletions
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." )