From 7aa4edc0ea0a976db0bcad44b1f322600064c9b2 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sat, 14 Aug 2021 11:06:21 +0200 Subject: [PATCH] Fix documentation for enablng connector --- README.md | 8 ++++---- src/CMakeLists.txt | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9d89da7d..5796b305 100644 --- a/README.md +++ b/README.md @@ -132,10 +132,10 @@ sqlpp11 requires a certain api in order to connect with the database, see databa Connectors for MySQL, MariaDB, sqlite3, sqlcipher are included in this repository. You can configure to use them via cmake options, i.e. ``` --DMYSQL_CONNECTOR --DMARIADB_CONNECTOR --DSQLITE3_CONNECTOR --DSQLCIPHER_CONNECTOR +-DMYSQL_CONNECTOR=ON +-DMARIADB_CONNECTOR=ON +-DSQLITE3_CONNECTOR=ON +-DSQLCIPHER_CONNECTOR=ON ``` Other connectors can be found here: diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3df596c3..ed4e6ba9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,14 +21,10 @@ # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -if(MYSQL_CONNECTOR) +if(MYSQL_CONNECTOR OR MARIADB_CONNECTOR) add_subdirectory(mysql) endif() -if(POSTGRESQL_CONNECTOR) - add_subdirectory(postgresql) -endif() - if(SQLITE3_CONNECTOR OR SQLCIPHER_CONNECTOR) add_subdirectory(sqlite3) endif()