diff --git a/cmake_modules/commonSetup.cmake b/cmake_modules/commonSetup.cmake index 7b4e913afb8..cfc7cd73911 100644 --- a/cmake_modules/commonSetup.cmake +++ b/cmake_modules/commonSetup.cmake @@ -892,12 +892,7 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "") endif(USE_AZURE) if(USE_MYSQL_REPOSITORY) - find_package(MYSQL) - if (MYSQL_FOUND) - add_definitions (-D_USE_MYSQL_REPOSITORY) - else() - message(FATAL_ERROR "MYSQL requested but package not found") - endif() + add_definitions (-D_USE_MYSQL_REPOSITORY) else() add_definitions (-D_NO_MYSQL_REPOSITORY) endif(USE_MYSQL_REPOSITORY)