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)