From 17875509c0fe30b96f3ac2bdea4e7e9864ec15e1 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 12 Sep 2021 16:12:30 +0300 Subject: [PATCH] Update CMakeLists.txt --- vendor/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index a71df960..15458225 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -36,6 +36,15 @@ set(ENABLE_TESTS OFF CACHE INTERNAL "" FORCE) set(ENABLE_ACTIVERECORD OFF CACHE INTERNAL "" FORCE) set(ENABLE_ACTIVERECORD_COMPILER OFF CACHE INTERNAL "" FORCE) set(POCO_UNBUNDLED OFF CACHE INTERNAL "" FORCE) +# Manualy enable some options if available +find_package(MySQL) +if(MYSQL_FOUND) + set(ENABLE_DATA_MYSQL ON CACHE INTERNAL "" FORCE) +endif() +find_package(PostgreSQL) +if(PostgreSQL_FOUND) + set(ENABLE_DATA_POSTGRESQL ON CACHE INTERNAL "" FORCE) +endif() add_subdirectory(POCO) # Windows gets stupid sometimes if (WIN32 AND MINGW)