Add additional flags for external libs

Add PETSc and BOOST flags which inherits values from external libs and global flags.
Add macro simplifying setting variable value using other variables as possible options.
Set flags for external libs in coverage mode
Typo bug fix
Merge branch 'JHy-cmake' into JHy-coverage