Don't show warnings during cmake's configuration
I build evolution-data-server calling
ccmake path-to-the-source (ccmake instead of cmake). Then I press [c] to configure. Then I get
CMake Error at cmake/modules/PkgConfigEx.cmake:32 (message): Necessary libraries not found or not enough version. If you want to disable Ubuntu Online Accounts support, please use -DENABLE_UOA=OFF argument to cmake command. Call Stack (most recent call first): CMakeLists.txt:449 (pkg_check_modules_for_option) Errors occurred during the last pass Press [e] to exit help
I press [e], go to ENABLE_UOA, change it to OFF and press again [c] to configure. Then I get:
CMake Warning at CMakeLists.txt:623 (message): sendmail not found, defaulting to /usr/sbin/sendmail CMake Error at cmake/modules/PkgConfigEx.cmake:32 (message): Necessary libraries not found or not enough version. If you want to disable Google, please use -DENABLE_GOOGLE=OFF argument to cmake command. Call Stack (most recent call first): CMakeLists.txt:819 (pkg_check_modules_for_option)
I go to ENABLE_GOOGLE and set it to OFF. Then I press again [c] to configure and get only:
CMake Warning at CMakeLists.txt:623 (message): sendmail not found, defaulting to /usr/sbin/sendmail
Then I press again [c] to configure. I get the sendmail warning again. And then I select [g] to generate and exit.
If the configuration phase detects, that the requirements for UOA or GOOGLE are not sufficient, then it shall just set ENABLE_UOA and ENABLE_GOOGLE to off, without bothering the user to do this explicitly and without showing warnings.
If sendmail is not found, then SENDMAIL_PATH shall be set to its default without showing any warnings. Evolution later anyway offers the possibily to send over sendmail, even if EDS has not found it. I think also, if sendmail is not found during EDS' configuration, then Evolution shall not offer to send mails using sendmail.
When I set ENABLE_UOA to OFF, I shall be also able to set ENABLE_GOOGLE to OFF, but I cannot, as the second option is not displayed. It is also not available after I [t]oggle in advances mode.
It shall be possible to complete the process, without seeing three times the warning, that sendmail cannot be found. At most one such warning should be displayed in the whole process.