diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-03-06 02:33:52 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-03-06 02:33:52 +0100 |
commit | 11f6dec02f0c065e739ecbe1016753d475eee22b (patch) | |
tree | 8a278c0b7af9f84fae908d7f900e90f95eec9779 /ConfigureChecks.cmake | |
parent | bfb5b5a5b56d18de08acaca6a19df1bd12d4f2a4 (diff) | |
download | amarok-11f6dec02f0c065e739ecbe1016753d475eee22b.tar.gz amarok-11f6dec02f0c065e739ecbe1016753d475eee22b.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>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 37976154..10b7a1db 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." ) |