Fixed non-MariaDB connectors being used in builds

The FindMariaDBConnector.cmake did not set the MARIADB_CONNECTOR_FOUND
variable to false but instead just removed the definition.
This commit is contained in:
Markus Makela 2016-03-11 12:08:19 +02:00
parent b9a9b1ebae
commit cea5f24319

View File

@ -42,7 +42,7 @@ if(HAVE_MARIADB_CONNECTOR)
message(STATUS "Found MariaDB Connector-C")
set(MARIADB_CONNECTOR_FOUND TRUE CACHE INTERNAL "" FORCE)
else()
unset(MARIADB_CONNECTOR_FOUND)
set(MARIADB_CONNECTOR_FOUND FALSE CACHE INTERNAL "")
unset(MARIADB_CONNECTOR_STATIC_FOUND)
unset(MARIADB_CONNECTOR_LIBRARIES)
unset(MARIADB_CONNECTOR_STATIC_LIBRARIES)